Skip to content
Prev 87158 / 398506 Next

converting character matrix to a dataframe

You could do it directly like this:

structure(split(ch.mat, col(ch.mat)),
       row.names = 1:nrow(ch.mat), .Names = 1:ncol(ch.mat),
       class = "data.frame")
On 2/23/06, John M. Miyamoto <jmiyamot at u.washington.edu> wrote: