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 ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.