replace_repeated_by_empty_string: Replace repeated values by the empty string

Description Usage Arguments Value Examples

View source: R/display_tables.R

Description

This function replaces duplicated values in a column by the empty string so that the table output is easier to read. The removal is done by comparing the vector with a shifted (lagged) version of itself. By default this function will convert numeric ouptut to character variables, unless you change the default empty_value='' argument.

Usage

1
replace_repeated_by_empty_string(x, empty_value = "")

Arguments

x

a vector

empty_value

the default values used for the lag, should be different than the first value in x

Value

vector

Examples

1
2
3

stix-global/eutradeflows documentation built on Nov. 13, 2020, 9:23 p.m.