Re: [R] reading tables into R

From: Sean Davis <sdavis2_at_mail.nih.gov>
Date: Fri 03 Jun 2005 - 23:03:49 EST

On Jun 3, 2005, at 8:40 AM, Wagle, Mugdha wrote:

> I have been using R and Perl. When I read in a text file using the
> read.table option, and I try to mathematically manipulate the
> individual elements in the table, I keep getting an "object is not
> subsettable" error. If I try to use a different method, it works, but
> takes too much time(basically, I then need to read in values
> individually into R instead of as a 2D array, so the number of
> function calls from Perl to R is very large). Could you suggest
> another method whereby I could read an entire matrix or a file using
> an R function call?
>

Mugdha,

I think you will probably have to be more specific. Could you give an example of the data format, the commands you used to load it that didn't work, and those that did and explain how perl comes into this? Also, knowing what OS and version of R you are using is quite helpful.

Sean



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jun 03 23:28:13 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:22 EST