I am trying to import a csv
file with Revolution Analytics.
My code is the following:
rxImport(inData = mycsv, outFile =myXdf,type="text", colClasses=c('character','character','character','character',
'character','character' ,'character','logical','logical','logical','logical', 'logical','logical','logical', 'logical','logical','logical' ,'numeric','numeric', 'numeric'))
I took care to delete myXdf
before to launch the code and used scan on the first 1000 elements to define the vector colClasses
.
It gives me the following error:
Error in validObject(.Object) :
invalid class “RxTextData” object: 'colClasses' must be a named character vector
Has somebody already met this error?