Displaying 1 result from an estimated 1 matches for "bnosta1".
Did you mean:
biostat
2010 Apr 14
2
Import ASCII data using a .sas program
...the data
to R.
The ASCII data is a long stream of numbers (no field separators or
delimiters) while the SAS import file looks like:
libname mine 'c:\';
data mine.fh4;
infile 'd:\fh4.txt' lrecl=2309;
input
perstat1 $1-2
linenum $3-4
I_wave1 $5-5
bnocost1 $6-10
bnosta1 $11-12
So SAS uses the position of the ASCII character to determine what
variable the data should be in while the SCAN or the READ. FWF function
of R uses the width of the column.
Does anyway have a smart and/or automated way of moving my ASCII data
into R using this .SAS program ?
--
-Don...