Displaying 1 result from an estimated 1 matches for "dma_id".
Did you mean:
dma_idx
2011 May 23
1
weird problem - R is not finding the data for the factor level present in the data
Sorry for no code - but it's a more of a general question.
I have read in a data frame ("|"-delimited, .txt).
daily<-read.table(file="filename.txt",sep="|",header=T)
One of the variables is a factor with 110 levels:
>str(daily$dma_id)
Factor 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&qu...