Displaying 2 results from an estimated 2 matches for "merge3".
Did you mean:
merge
2016 Apr 16
2
Equivalent in R of the Contains operator in SAS
Hi all,
I want to select all variables in the data.frame with a name that
includes are certain string. Something like the following:
merge3[,names(merge3) %in% c("Email","Email.x")]
But there are too many variations on the Email variable names to list them all.
Can anyone advise?
Thanks!
Dan
2016 Apr 16
0
Equivalent in R of the Contains operator in SAS
...string matching functions, e.g. grepl().
-pd
> On 16 Apr 2016, at 15:18 , Dan Abner <dan.abner99 at gmail.com> wrote:
>
> Hi all,
>
> I want to select all variables in the data.frame with a name that
> includes are certain string. Something like the following:
>
> merge3[,names(merge3) %in% c("Email","Email.x")]
>
> But there are too many variations on the Email variable names to list them all.
>
> Can anyone advise?
>
> Thanks!
>
> Dan
>
> ______________________________________________
> R-help at r-project...