s-news
[Top] [All Lists]

Re: Break a string into a vector of numbers

To: s-news@wubios.wustl.edu
Subject: Re: Break a string into a vector of numbers
From: Sean N Ge <Sean.Ge@bms.com>
Date: Mon, 20 Nov 2000 15:56:14 -0500
Organization: Bristol-Myers Squibb
References: <3A198775.DFB923@bms.com>
I want to thank Bill Pikounis, Scott Chasalow and Samuel Buttrey. They all
suggest the following method and it works wonderfully.

as.numeric (unlist (unpaste ("1.2.3.4.5.6.7", sep=".")))

Thanks

Sean


Sean N Ge wrote:

> Hi, all:
>
> I have a string 1.2.3.4.5.6.7 and would line to convert into a
> vector
> (1,2,3,4,5,6). Is there any way to do this in S+.
>
> Thanks.
>
> Sean N. Ge
>
>   -----------------------------------------------------------------
> ---------------------------------------------------------------------
> This message was distributed by s-news@lists.biostat.wustl.edu.  To
> unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
> the BODY of the message:  unsubscribe s-news

Attachment: Sean.Ge.vcf
Description: Card for Sean N Ge

<Prev in Thread] Current Thread [Next in Thread>