give you? I guess there is an issue with an automatic factor conversion with a possible reordering of levels. Using stringsAsFactors=F as an option in either read.table or read.csv (which is actually a wrapper for read.table to conveniently read in 'comma separated values') should overcome this issue.