Melt using patterns when variable names contain string information – avoid coercion to numeric

From data.table 1.14.1 (in development; installation), the new function measure makes it much easier to melt data with concatenated variable names to a desired format (see ?measure. The separator argument is used to create different groups of measure.vars. In the … argument, we further specify the fate of the values corresponding to the groups generated … Read more