Explicitly use data.table::subset
Hello sorry but I still get an error in this line:
It might have been that my code moved a bit but specifically is here: https://git.noc.ac.uk/brecinosrivas/icoads.utils/-/blob/master/R/get_mis.R#L31
pp<-data[data,allow.cartesian=TRUE]
Error in xj[i] (new_merge_ids_year.R#295 that then goes to get_mis.R#L31): invalid subscript type 'list'
Edited by brivaseven though I have put the fix
data<-data.table::data.table(df.in,key=key.list) pp<-data[data, allow.cartesian=TRUE] pp<-data.table::subset(pp,uid!=i.uid)
Edited by brivasSorry ignore the my.data thing in the previous (now deleted) comment I have two functions with the same problem so
got confuse for a minuteEdited by brivasHere you go foo.RDS
df.in is called sub in the script that source get_mis
Hello this issue is also fixed by making the import of data table as explained in the other pull request.
Sorry @ricorne for the trouble! and thanks for the tips
Please register or sign in to reply