Displaying 2 results from an estimated 2 matches for "tablefunction".
2011 Mar 02
3
transform table to matrix
...d the third is a cover value (numeric). I imported using the
read.table function.
My problem is this. I need to reformat the information as a matrix, with the
first column becoming the row labels and the second the column labels and
the cover values as the matrix cell data. However, since the
read.tablefunction imported the data as an indexed data frame, I can't use
the columns
as vectors. Is there a way around this, to convert the data frame as 3
separate vectors? I have been looking all over for a function, and my
programming skills are not great.
--
Sk Maidul Haque
Scientific Officer-C
Applied S...
2006 Jun 30
5
Way to convert data frame to matrix
...he third is a cover value (numeric). I imported using the
read.table function.
My problem is this. I need to reformat the information as a matrix, with
the first column becoming the row labels and the second the column labels
and the cover values as the matrix cell data. However, since the
read.tablefunction imported the data as an indexed data frame, I can't
use the columns
as vectors. Is there a way around this, to convert the data frame as 3
separate vectors? I have been looking all over for a function, and my
programming skills are not great.
Thanks in advance
[[alternative HTML version de...