Hi all,
I read in a column which looks like chr1:000889594-000889638, and need to
break them into three columns like chr1:, 000889594 and 000889638. How
shall I do in R. Thanks a lot for your suggestions!
Bill
__
R-help@r-project.org mailing list
Bill Hyman wrote:
Hi all,
I read in a column which looks like chr1:000889594-000889638, and need to
break them into three columns like chr1:, 000889594 and 000889638. How
shall I do in R. Thanks a lot for your suggestions!
if strings is your vector of strings, this should do (assuming
on 02/05/2009 05:20 PM Bill Hyman wrote:
Hi all,
I read in a column which looks like chr1:000889594-000889638, and
need to break them into three columns like chr1:, 000889594 and
000889638. How shall I do in R. Thanks a lot for your suggestions!
See ?strsplit
Vec - chr1:000889594-000889638
Thx a lot! It works
- Original Message
From: Wacek Kusnierczyk waclaw.marcin.kusnierc...@idi.ntnu.no
To: Bill Hyman billhym...@yahoo.com
Cc: R help r-h...@stat.math.ethz.ch
Sent: Thursday, February 5, 2009 3:38:34 PM
Subject: Re: [R] how to separate char and num within a variable
Bill
Thx a lot!
- Original Message
From: Marc Schwartz marc_schwa...@comcast.net
To: Bill Hyman billhym...@yahoo.com
Cc: r-help@r-project.org
Sent: Thursday, February 5, 2009 3:39:53 PM
Subject: Re: [R] how to separate char and num within a variable
on 02/05/2009 05:20 PM Bill Hyman wrote:
Thank you!
- Original Message
From: markle...@verizon.net markle...@verizon.net
To: Bill Hyman billhym...@yahoo.com
Sent: Thursday, February 5, 2009 3:35:54 PM
Subject: RE: [R] how to separate char and num within a variable
hi: you can do below but there should possibly be a better
6 matches
Mail list logo