Displaying 1 result from an estimated 1 matches for "newprvdr_num".
2012 Mar 10
1
Subsetting a data.frame -> Read in with FWF format from .DAT file
...50108))
newinpatient <- merge(providernum, oldinpatient)
With checking "class" at one point, I gathered that R interprets PRVDR_NUM
as a factor, not a number .. so I've understood a potential reason why I
would have errors (with code above). So, I then tried something like this:
newPRVDR_NUM <- format(as.numeric(levels(oldinpatient$PRVDR_NUM)
[oldinpatient$PRVDR_NUM]))
numericprvdr <- data.frame(oldinpatient, newPRVDR_NUM)
bestprvdr <- numericprvdr[,-2]
I thought that with converting PRVDR_NUM to numeric, then one of the three
options above would be satisfied. But, that has...