dcast warning: ‘Aggregation function missing: defaulting to length’
The reason why you are getting this warning is in the description of fun.aggregate (see ?dcast): aggregation function needed if variables do not identify a single observation for each output cell. Defaults to length (with a message) if needed but not specified So, an aggregation function is needed when there is more than one value … Read more