Import from local computer to R studio

Hi everyone
I am a first time user.
I want to import my otu-table into R and I am having an issue with the command.
This is the command that used:

otu_table_p = read.table (C:/Users/User/Desktop/qiime2-1st/phyloseq/otu-table.csv(), header = TRUE, row.names = 1, sep = ",")

Can anyone help, please?

This is the error message:

Error: unexpected '/' in "otu_table_p = read.table (C:/"

Also, how do I match a package with a particular R studio version?

The file path needs to be in quotes. I assume the file name does not include the parentheses after csv, so those are not needed.

otu_table_p = read.table ("C:/Users/User/Desktop/qiime2-1st/phyloseq/otu-table.csv", header = TRUE, row.names = 1, sep = ",")

This is a different problem. Mark the response from @FJCC as the solution, delete your reply here, and post it as a new question.

Thanks a bunch, just did that.

Regards.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.