Just as a note, if you are going to convert a factor to numeric, the preferred idiom is: ## hypothetical numeric factor x <- factor(paste(10:15)) ## preferred method for conversion as.numeric(levels(x))[x] Cheers, Josh