[R] Request for R Assistance: Downloading Data

Rich Shepard r@hep@rd @end|ng |rom @pp|-eco@y@@com
Sun Aug 19 21:19:06 CEST 2018


On Sun, 19 Aug 2018, Spencer Brackett wrote:

> I am attempting to download Genomic data from the GDC onto R for analysis
> and am experiencing some difficulty. I have downloaded the GDC data into an
> Excel, CSV, and notepad (.txt) file and implemented what I believe to be
> the proper arguments, with every attempting failing to properly load the
> data onto R.

Spencer,

   Looks like you want to read the data into an R dataframe; I assume that's
the format for geonomic data as it is for environmental data.

>> load("C:\\Users\\Spencer\\Desktop\\LGG Drug (CSV).csv")

   Instead, try

mydata <- read.csv("lgg_drug.csv", header = TRUE, stringsAsFactors = FALSE)

Note: this assumes the data file has column headers. And, you can use your
.txt file with the read.table() function.

> Any insight into what perhaps I am inputting that is causes this
> reoccurring error? Any suggestions as to another procedure for moving
> forward would be greatly appreciated!

   How much about R have you read/learned? Taking a couple of steps back
might be well worth your while.

Regards,

Rich




More information about the R-help mailing list