Displaying 1 result from an estimated 1 matches for "pa2207".
Did you mean:
052207
2011 May 23
1
weird problem - R is not finding the data for the factor level present in the data
...w/ 110 levels "500","501","503",...
108 levels of this factor happen to be numbers "500", "501", "503",
... "880","881"
But the last 2 levels are strings:
>levels(daily$dma_id)[109:110]
[1] "OH1054" "PA2207"
I checked in the raw data file (.txt) that there are no spaces in
these last 2 levels, that there is nothing weird. There is nothing.
When I do the following with any level of that factor, I get the data
I am expecting:
>daily$dma_id[daily$dma_id %in% levels(daily$dma_id)[108]]
[1] "...