I\'m having some difficulty inserting a data frame into a mySql database using RODBC. Below is the code I\'m using:
data <- data.frame(analysedDataID=c(1,2,3
> str(data)
'data.frame': 3 obs. of 4 variables:
$ analysedDataID : num 1 2 3
$ plateWell : Factor w/ 3 levels "a","b","c": 1 2 3
$ screenPlateOrder: num 1 2 3
$ wellData : Factor w/ 3 levels "A","B","C": 1 2 3
Have you tried making your numerics integers and your factors characters?
data <- data.frame(analysedDataID=as.integer(c(1,2,3)), plateWell=c("a","b","c"), screenPlateOrder=as.integer(c(1,2,3)), wellData=c("A","B","C"),stringsAsFactors=FALSE)