Displaying 1 result from an estimated 1 matches for "m2qdf".
2012 Jul 26
1
How can I correctly access a string element of a dataframe?
...6"
Int
"A_Int.csv"
"1970-01"
"2012-03"
(The file is attached to this email)
The three-line program is as follows:
m2q<-read.csv(file="B_M2Q.csv", header=FALSE) # Read the file containing
file names and sampling periods of numerical data
m2qdf<-as.data.frame(m2q) #Make the file of filenames a dataframe
x1<-read.csv(file=m2qdf[1,2]) # Read the numerical data
Nevertheless, there is an error when I attempt to read the numerical data
> x1<-read.csv(file=m2qdf[1,2])
Error in read.table(file = file, header = header, sep...