The columns to pivot: their names, in this order, or a test of the name (selecting in the data's order).
Optionalcols"fastest" (default): the pivoted columns vary within each input row; "slowest": all rows for each column in
turn. Any other value is an error, as in tidyr.
OptionalnamesA regular expression whose capture groups are the parts of the names.
OptionalnamesA regular expression whose match at the start of the names is removed.
OptionalnamesA regular expression at whose matches the names are split into the parts.
OptionalnamesThe columns to make from the names, one per part of the names. ".value" marks the part that names the value
columns. With [], no columns are made from the names (namesSep and namesPattern are not used). Default "name".
OptionalnamesFunctions applied to the parts, by namesTo column (the part as a string; missing parts stay missing). Own
properties only: a namesTo column named toString has no transform unless one is given. The transform of
".value" gives the names of the value columns, and must return strings.
OptionalonCalled with each of tidyr's warnings, once per distinct warning, in order. Default: the warnings go to the handler of setWarningHandler (none by default).
OptionalvaluesDrop the rows where every value column is missing. Default false.
OptionalvaluesThe name of the value column (without ".value" in namesTo). Default "value".
Options for pivotLonger (tidyr's arguments in camelCase).