[R] problem in creating a dataframe

R. Michael Weylandt <michael.weylandt@gmail.com> michael.weylandt at gmail.com
Tue Nov 22 11:08:32 CET 2011


I believe the command you are looking for is as.data.frame(), though you are probably going to need as.double() rather soon as well. 

Do note that data frames can, and often do, have character elements. 

Best,
Michael

On Nov 22, 2011, at 1:21 AM, arunkumar1111 <akpbond007 at gmail.com> wrote:

> Hi
> 
> I have a character class and i need to convert into dataframe
> 
> data=("0","0","0","0")
> 
> I want a dataframe with each one should under a separate column
> 
> Please help me                          
> 
> 
> --
> View this message in context: http://r.789695.n4.nabble.com/problem-in-creating-a-dataframe-tp4094676p4094676.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> 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 mailing list