[R] format: from list to data frame
Javier
j.perez-barberia at macaulay.ac.uk
Sat Mar 13 17:46:07 CET 2010
Dear users,
Is anyone out there on a Saturday to answer this easy question?
I have the "yo" object data in a "list" format:
> str(yo)
num [1:259, 1:173] 16.3 NA NA NA NA ...
- attr(*, "dimnames")=List of 2
..$ x: chr [1:259] "367319" "367329" "367309" "367339" ...
..$ y: chr [1:173] "780175" "780185" "780195" "780205" ...
> length(yo)
[1] 44807
where x is the name of the rows and y the name of the columns (coordinates)
of a matrix of 44807 values
how can I get a data.frame with these three columns: x, y, values
Many thanks to the Saturday working people.
Javier
and I want to produce a data frame
--
View this message in context: http://n4.nabble.com/format-from-list-to-data-frame-tp1591773p1591773.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list