Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The error you get is caused by a the <code>colClasses</code> argument - some values in the file to not match the datatypes you specified.</p> <p>Most of the time I encounter something like this, I probably just had some counting problem with the <code>colClasses</code> argument, e.g it would maybe be</p> <pre><code>colClasses=c(rep("factor",5),"numeric", rep("factor",4), rep("numeric",7),"factor") </code></pre> <p>instead of your default values. That may be simply checked by carefully comparing the contents of the first lines of your file with the datatypes you specified.</p> <p>If this does not do the trick for you, you probably have some wrong datatype where you do not expect it. A simple, yet slow approach is to remove the <code>colClasses</code> argument and first read the whole file without specific options - probably add <code>stringsAsFactors=FALSE</code> to get only character values. This probably should work.</p> <p>Then you may try to convert each column one by one, like</p> <pre><code>data$itemId &lt;- as.numeric(data$itemId) </code></pre> <p>and then check the result for <code>NA</code> values, easily done by <code>summary(data$itemId)</code>. If you got <code>NA</code> values, you can call <code>which(is.na(data$itemId))</code> to get the row number and check your original file whether the <code>NA</code> in fact is valid or if you have some data problems there. </p> <p>Most of the time you will be able to narrow down your problem this way. </p> <p>If your file a lot of columns, however, this quickly becomes a lot of work....</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload