On May 17, 2013, at 08:51 , Sparks, John James wrote:
> Dear R Helpers,
>
> I need help with a slightly unusual situation in which I am trying to
> select some columns from a data frame. I know how to use the subset
> statement with column names as in:
Notice that subset() is a convenience fun
On May 17, 2013, at 12:02 , peter dalgaard wrote:
>
> On May 17, 2013, at 08:51 , Sparks, John James wrote:
>
>> Dear R Helpers,
>>
>> I need help with a slightly unusual situation in which I am trying to
>> select some columns from a data frame. I know how to use the subset
>> statement with
Hello,
It works for me if I replace
> ImportantVars <- as.character(ImportantVars)
by
> ImportantVars <- ImportantVars$Vars
Hope this helps,
Pascal
2013/5/17 Sparks, John James
> Dear R Helpers,
>
> I need help with a slightly unusual situation in which I am trying to
> select some colum
Dear R Helpers,
I need help with a slightly unusual situation in which I am trying to
select some columns from a data frame. I know how to use the subset
statement with column names as in:
x=as.data.frame(matrix(c(1,2,3,
1,2,3,
1,2,2,
1,2,2,
1,1,1),ncol=3,byrow=T
4 matches
Mail list logo