[R] Transforming matrix to data.frame: problems
Peter Dalgaard BSA
p.dalgaard at biostat.ku.dk
Fri Nov 9 21:11:07 CET 2001
Agustin Lobo <alobo at ija.csic.es> writes:
> Hi all,
>
> I have problems transforming a matrix
> into a data.frame:
>
> If I do:
>
> > is.matrix(parcelas.cobtot.conti)
> [1] TRUE
> > dim(parcelas.cobtot.conti)
> [1] 25 64
>
> > a <- data.frame(parcelas.cobtot.conti)
> > is.data.frame(a)
> [1] TRUE
> >
> > dim(a)
> [1] 1600 3
>
> Why a does not have the same dimensions than
> parcelas.cobtot.conti?
...
> What can be wrong with parcelas.cobtot.conti ?
> I'd appreciate any help
Anything interesting coming out of
str(parcelas.cobtot.conti)
?
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list