Skip to content

Iteration through a list in R

3 messages · Sahana Srinivasan, Bert Gunter, David Winsemius

#
Have you read "An Introduction to R" (ships with R) or other of the
many web tutorials. If not, please do so before posting.

-- Bert

On Thu, Feb 28, 2013 at 4:30 AM, Sahana Srinivasan
<sahanasrinivasan.91 at gmail.com> wrote:

  
    
#
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.