>> Subject: [R] subset select="variable with a list of names"
>>
>> Hello,
>> I would like to make a function which extracts a subset, from a
>> dataset,
>> with only the columns that I want (specifying their names).
>>
>> For example,
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Francisco
> Sent: Thursday, February 09, 2012 4:52 AM
> To: r-help@r-project.org
> Subject: [R] subset select="variable with a list of names"
>
&g
Hello,
I would like to make a function which extracts a subset, from a dataset,
with only the columns that I want (specifying their names).
For example, having this matrix:
> mydata<-matrix(c(22,1,3,2001,24,5,7,2002,26,7,8,2002,28,5,7,2003),
byrow=TRUE, ncol=4, dimnames=list(c(1,2,3,4),
c("ag
3 matches
Mail list logo