Description Usage Arguments Value
takes a simple matrix locating the variables of interest (created, eg, as a .csv file in excel) and composes a vector of widths suitable to be passed into read.fwf NOTE: for now, this can't handle a situation where the vardefs contains multiple variables using the same columns (ie, a fips state and county code)
1 | simple.fwf(vardefs, filename, ...)
|
vardefs |
a matrix (or data frame) with cols "begin", "size", and "varname" with the starting column, the variable width, and its name |
filename |
the file (in fixed-width format) to read in |
... |
other args to be passed along to read.fwf |
the dataframe from the fixed-width file
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.