If mat is your matrix then this will produce a 14 column data frame:
DF <- read.table(textConnection(apply(mat, 1, paste, collapse = " ")))
On Jan 8, 2008 9:36 AM, mohamed nur anisah <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a matrix data with 21 rows and 6 columns. Below and attach with is
Try this also:
do.call(rbind, lapply(apply(df, 1, paste, collapse=" "),
function(.x)read.table(textConnection(.x
On 08/01/2008, mohamed nur anisah <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a matrix data with 21 rows and 6 columns. Below and attach with is
> my matrix data. My problem is
Hi,
I have a matrix data with 21 rows and 6 columns. Below and attach with is my
matrix data. My problem is to split the column into 3 subcolumns (except for
column 3 and 4) . I want my new matrix data to have 14 columns and 21 rows.
Kindly help is highly appreciated.
[,1]
3 matches
Mail list logo