Delphine Fontaine <delphine.fontaine <at> genexion.com> writes:

> I would like to create a new data frame composed of 2 columns of another
> data frame. But it does not give me what I want...
> 
> > casesCNST[1:10,]
>    case X1 X2 X3 X4 expected
> 1    A1  0  0  0  0        E
> 2    A2  0  0  0  1        C
...
 
> > expectedCNST <- data.frame (cbind (casesCNST$case, casesCNST$expected))
> 
> > expectedCNST[1:10,]
>     X1 X2
> 1    1  4
......


attenu[1:10,]
attenu[1:10,c("mag","dist")]

Dieter

______________________________________________
R-help@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.

Reply via email to