[R] data frame
John Kane
jrkrideau at yahoo.ca
Tue Sep 1 16:44:09 CEST 2009
Well the data frame has dimensions 0,0, to start with.
Try dim(rm)
What is "getmeasure" and what is it supposed to do?
# btw rm is NOT a good name since it also is a reserved word in R. It removes objects.
To create a data.frame of your six vectors why not just say
mydata <- data.frame(V1, V2, V3, V4, V5, V6)
--- On Tue, 9/1/09, Tammy Ma <metal_licaling at live.com> wrote:
> From: Tammy Ma <metal_licaling at live.com>
> Subject: [R] data frame
> To: r-help at r-project.org
> Received: Tuesday, September 1, 2009, 4:39 AM
>
> HI, R user,
>
> I generate the vectors with the same length. I want to put
> each vector into each column of data frame. Why it doesnt
> work`?
>
> rm<-data.frame()
>
> for(a in 1:6){
> rm[,a]<-getmeasure(p1,a,speech)
>
> }
>
> thanks a lot
>
> Tammy
>
>
> _________________________________________________________________
> Share your memories online with anyone you want.
> http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>
__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.
More information about the R-help
mailing list