using na.rm on separate variables with collapse::collap
I want to use the collapse
package to summarise the following data:
Index by group with collapse
I’m trying to create an index column based in multiple variables with a behavior like rleidv in
data.table
, as an example taking just a few cases of mtcars dataset