[R] Problems with data.matrix

Laura Gross laura at bayesian-bay.freeserve.co.uk
Fri Mar 28 17:44:21 CET 2003


Dear List

I have what is probably a simple problem that I just can't seem to
solve.

I have a data list which is in the form: lev2.list

[[1]]
        1      2
      number number
[[2]]
        3      4
      number number

etc down to [[1100]]

I'm wanting to convert this to a data.matrix so I can plot the values,
however, when I use new<-data.matrix(lev2.list), I get a data matrix
that reads:

[1, ] Numeric, 2
[2, ] Numeric, 2

with every line down to [1100, ] reading 'Numeric,2'

Why am I getting this output? Why will R not display the numbers in a
data.matrix?

Many thanks for any help
Laura



More information about the R-help mailing list