s-news
[Top] [All Lists]

character to numeric

To: <s-news@lists.biostat.wustl.edu>
Subject: character to numeric
From: "Frank Lawrence" <Cougar@psu.edu>
Date: Sun, 18 Aug 2002 15:17:04 -0400
Importance: Normal
Organization: PSU
Reply-to: <Cougar@psu.edu>
I have multiple data files [ASCII format]. Each file is sequentially
numbered and contains a combination of text and numbers.  My interest in
the text is only to identify rows. I want the rows that begin with 'I'
or 'S'.  There are multiple occurrences of the 'I' and 'S' rows in each
data file.  I want to extract the numbers in those rows that begin with
'I' or 'S' for further analysis.  Each row of interest contains 8
columns of numbers.  I would like to put those columns of numbers in 8
separate columns of a data frame.  Furthermore, I would like to put in a
row of "NA" if the row does not exist in the data file.


Respectfully, 
Frank R. Lawrence 


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