Skip to content
Prev 349838 / 398513 Next

how to Subset based on partial matching of columns?

LGTY MY GM+ RS TY
  1    0      1  0  0
  2    1      0  0  0
  3    0      0  1  0
  4    0      0  0  1
LGTY MY GM+ RS TY
1    0      1  0  0
2    1      0  0  0
3    0      0  1  0
4    0      0  0  1
x   code LGTY MY.GM. RS TY
1 1 MY GM+    0      1  0  0
2 2   LGTY    1      0  0  0
3 3     RS    0      0  1  0
4 4     TY    0      0  0  1


-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of samarvir singh
Sent: Thursday, April 9, 2015 8:50 AM
To: Sarah Goslee
Cc: r-help
Subject: Re: [R] how to Subset based on partial matching of columns?

Thank you. Sarah Goslee. I am rather new in learning R. So people like you
are great support. Really appreciate you, taking the time to correct my
mistakes. Thanks
On Thu 9 Apr, 2015 6:54 pm Sarah Goslee <sarah.goslee at gmail.com> wrote:

            
______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.