Displaying 2 results from an estimated 2 matches for "meaningfulnames".
2010 Oct 29
2
Reading multiple .csv-files and assigning them to variable names
...call the datasets later on.
For example (5 filenames):
- The filenames are stored in one variable:
filenames = paste(paste('name', '_', 1:5, sep = ''), '.csv', sep = '')
- Subsequently I have a variable just containing the meaningful names
for the dataset
meaningfulnames = c('name1','name2'...,'name5')
- I want to link each of these names to the data that is read
for (i in 1:5)
{
meaningfulnames[i] = read.csv(filenames[i], header = TRUE, sep = ',')
}
I need to read in quite a lot of datafiles. I have a code doing this
one at...
2010 Oct 31
1
R-help Digest, Vol 92, Issue 31
...call the datasets later on.
For example (5 filenames):
- The filenames are stored in one variable:
filenames = paste(paste('name', '_', 1:5, sep = ''), '.csv', sep = '')
- Subsequently I have a variable just containing the meaningful names
for the dataset
meaningfulnames = c('name1','name2'...,'name5')
- I want to link each of these names to the data that is read
for (i in 1:5)
{
meaningfulnames[i] = read.csv(filenames[i], header = TRUE, sep = ',')
}
I need to read in quite a lot of datafiles. I have a code doing this
one at...