[R] Convert list to data frame
murdoch.duncan at gmail.com
Mon Feb 15 20:12:20 CET 2016
On 15/02/2016 7:41 AM, asma.rabe at gmail.com wrote:
> I read data from file as follows
> I want to convert data to data frame, I tried the following:
> But the Data did not change
It is already a dataframe. Whoever told you that mode(Data) is the way
to test for that is giving you bad advice. (Probably the same source
that said T always means TRUE.)
There's a function is.data.frame() that does the proper test, i.e.
Or you can look at class(Data).
> When I tried
> The Data converted to a vector not to a data frame. Any idea ?
> Thank you in advance
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help