Displaying 1 result from an estimated 1 matches for "loadhierarchy".
2010 Oct 06
0
multiple record types from a single file efficiently?
...ti) but
it requires each collection of records be of a defined row length, (one
household entry = n for all households) but, that doesnt work here
so the function needs to read.fwf (or scan) a line and parse the line
according to the flag in character position given by flag_pos....
thoughts?
loadhierarchy <- function(indata,dd_by_type,flag_pos) {
# read indata line by line and add each row based on its record type
# we'll grab the line, compare the character in col position flag_pos to
type_flag (column 3 in dd_by_type) and
# rbind to the data with the right formatting
i <- 1
width <-...