1. A

    ].data.frame instead of ].data.table

    Is there a was to run ].data.frame instead of ].data.table when using package data.table? I ask because I get error "Error: cannot allocate vector of size 1.1 Mb" when running the below line of code on very large data and using ].data.table: dat2 = rowsum(dat[,cols,with=F], dat$id) ...but know...
  2. S

    data.table manipulation for poisson model setup

    I am cross posting from ideas there so far! I am working with a large dataset of a fishing fleet and I need to format it for a poisson regression and other count models. See below for a subset of the data. The count variable is 'days'. p1:p3 are indicator variables for...