Displaying 1 result from an estimated 1 matches for "media1y".
Did you mean:
media1
2010 Jan 21
2
Problems completely reading in a "large" sized data set
...76Mb, so while it's large.. it's not
-that- large. I'm running Win7 x64 w/4G RAM and R 2.10.1
When I open this data in Excel, i have 27 rows and 450932 rows, excluding
the first row containing variable names.
I am trying to get this into R as a dataset for analysis.
z<-"Data/media1y.txt"
f=file(zz,'r') # open the file
rl = readLines(f,1) # Read the first line
colnames<-strsplit(rl, '\t')
p = length(colnames[[1]]) # counte the number of columns
nobs<-450932
close(f)
Using:
d1<-matrix(scan(zz,skip=1,sep="\t",fill=TRUE,what=rep("chara...