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

Description Usage Arguments Value See Also

Description

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

Usage

1
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()


dongzhuoer/hgnc documentation built on Aug. 7, 2020, 8:39 a.m.