Skip to content
Prev 318493 / 398503 Next

Iteration through a list in R

On Feb 28, 2013, at 4:30 AM, Sahana Srinivasan wrote:

            
You do need to work through the examples in "Introduction to R"
When posting to rhelp you should offer code as well as a description.
?read.delim

"Matrix" is sometimes used as a generic English word describing a regular arrangement of data. When discussing the R language, you should use it only when talking about a specific sort of data-object which will return TRUE for: is.matrix(object). And then depending on whether you actually want a matrix or will be satisfied by the data-frame object that read.delim would have returned, you may or may not need:

?data.matrix
lapply( fil_list, read.delim)
No. Please read the help page for `as.matrix` more carefully. It does not take a file or connection argument.