convert a "long" map into a "wide" one
cast_map(df, id, measure, collapse = " /// ")
tibble. rows containing NA in any of following variables are removed.
string. name of a character variable in df
, its elements can only contain one value each
string. name of a character variable in df
, its elements can only contain one value each
string. used as a separator when collapsing multiple values of measure
which map to a single value of id
tibble. column names are id
and measure
.
Other mapping:
melt_map()