Dear OF Team,
I would like to import a rather long species list (csv >700 MB) to Collect, using the provided R-scripts (https://drive.google.com/open?id=1FKe3dlFRgw1IrUmUtF6q02j4qDr9gkki). As reference, I am working with the PDF Species coding approach for Open Foris Collect and Calc. However, I can't get the script to work properly as the following step keeps resulting in an error:
split scientific names into genus and species
sp_dt[, c( "genus", "species", "tspecies", "subspecies" ) := tstrsplit(scientific_name, " ", fixed=FALSE)] Error in
[.data.table(sp_dt, ,:=(c("genus", "species", "tspecies", : Supplied 4 columns to be assigned 2 items. Please see NEWS for v1.12.2.
Even though I am considering splitting the csv into separate species lists according to the taxonomical order, I'd still need the script to work.
Can anybody point me in the right direction to find the source of this error?
Thank you very much in advance,
Alex