Displaying 3 results from an estimated 3 matches for "puntaier".
2004 Feb 09
2
apply on logical data frame together with all (PR#6560)
Full_Name: Roland Puntaier
Version: 1.8.1
OS: Windows XP
Submission from: (NULL) (62.99.238.78)
I have a data frame with some columns being logical.
I wanted to calculate a column that is an AND combination of the other logical
columns.
I tried to use
apply(df,1,all)
It did not work because of the implicit string convers...
2004 Feb 09
0
apply on logical data frame together with all (PR#6560 )
Wrap your data frame in data.matrix() and you should be fine; e.g.,
apply(data.matrix(df), 1, all)
Don't think this qualifies as bug...
Andy
> From: roland.puntaier@chello.at
>
> Full_Name: Roland Puntaier
> Version: 1.8.1
> OS: Windows XP
> Submission from: (NULL) (62.99.238.78)
>
>
> I have a data frame with some columns being logical.
> I wanted to calculate a column that is an AND combination of
> the other logical
> co...
2004 Feb 09
0
apply on logical data frame together with all (PR#6560
Wrap your data frame in data.matrix() and you should be fine; e.g.,
apply(data.matrix(df), 1, all)
Don't think this qualifies as bug...
Andy
> From: roland.puntaier@chello.at
>
> Full_Name: Roland Puntaier
> Version: 1.8.1
> OS: Windows XP
> Submission from: (NULL) (62.99.238.78)
>
>
> I have a data frame with some columns being logical.
> I wanted to calculate a column that is an AND combination of
> the other logical
> co...