[R] importing large dataset

ManuelS steiner-manuel at web.de
Wed Oct 26 23:34:35 CEST 2011


Hey

The size doesnt matter - so far. What your looking for is /read.csv()/ or
/read.csv2()/

A simple exemple would look like this:

name <- read.csv2("C:/blablabla.../filename.csv", header=TRUE, sep=";",
dec=".", na.strings="NA")

header = TRUE leaves a row for columne titles (i suppose ur columnes have
labels)
sep = ... defines how columnes are seperated. Since your using Excel  ";"
should work.
dec = ... either "," or "." (1.24 or 1,24). Yours to sepcify.
na.strings ="NA"  tell r what to do with missing inputs. In this case they
are set to "NA"

That should do it.
Manu
                    

--
View this message in context: http://r.789695.n4.nabble.com/importing-large-dataset-tp3942180p3942412.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list