What is wrong with the "extra step"? Is it taking too much time (you
did not specify that), is it taking too much memory? How many times
are you going to be doing it? If not many, then may be it is OK. You
have to quantify what you are asking for. It may take longer to send
a message to R-Help
On Nov 20, 2009, at 1:01 PM, Peng Yu wrote:
On Sat, Nov 21, 2009 at 11:55 AM, Steve Lianoglou
wrote:
read.delim gives me a data.frame. Is there a function that can
return
the result in a matrix rather than data.frame?
m <- as.matrix(read.delim(..))
I knew this approach. But this takes a
I can't think of anything that is already built in.
But you can always:
read.as.matrix <- function(...) as.matrix(read.delim(...))
and now you get one step only ;-)
b
On Nov 20, 2009, at 4:01 PM, Peng Yu wrote:
On Sat, Nov 21, 2009 at 11:55 AM, Steve Lianoglou
wrote:
read.delim gives me a
On Sat, Nov 21, 2009 at 11:55 AM, Steve Lianoglou
wrote:
>> read.delim gives me a data.frame. Is there a function that can return
>> the result in a matrix rather than data.frame?
>
> m <- as.matrix(read.delim(..))
I knew this approach. But this takes an extra step. Is there a command
that read a
read.delim gives me a data.frame. Is there a function that can return
the result in a matrix rather than data.frame?
m <- as.matrix(read.delim(..))
-steve
--
Steve Lianoglou
Graduate Student: Computational Systems Biology
| Memorial Sloan-Kettering Cancer Center
| Weill Medical College o
5 matches
Mail list logo