Hi Henry, You are certainly starting from the beginning. first, when you import the data from a CSV file, remember to add: read.csv(...,stringsAsFactors=TRUE) There will doubtless be other problems, but you have to start somewhere. Jim