convert a "long" map into a "wide" one

cast_map(df, id, measure, collapse = " /// ")

Arguments

df

tibble. rows containing NA in any of following variables are removed.

id

string. name of a character variable in df, its elements can only contain one value each

measure

string. name of a character variable in df, its elements can only contain one value each

collapse

string. used as a separator when collapsing multiple values of measure which map to a single value of id

Value

tibble. column names are id and measure.

See also

Other mapping: melt_map()