[R] Convert a data frame to a 2D array?

From: A Huang <mytechforum_at_yahoo.com>
Date: Tue, 08 Jun 2010 09:07:09 -0700 (PDT)

Hi there,

I've read a file into a data frame. The data is n rows by m columns, all values are numbers. Is there a way to convert the data frame to a 2D array? I tried as.array(), but got some error messages.

Thanks

  1. Huang

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 08 Jun 2010 - 16:09:37 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 08 Jun 2010 - 16:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive