text_range: Generate Range of Numeric Column in Text Form

Description Usage Arguments Value Examples

View source: R/text_utils.R

Description

text_range() generate range of numeric column in data frame in the form of <number><symbol> ~ <number><symbol>. If the column name has "percent" string, then the symbol will be '%', otherwise is a void string.

Usage

1

Arguments

data

a data frame

col

character. The name of a numeric column.

Value

character in the form of <number><symbol> ~ <number><symbol>

Examples

1
2
df <- data.frame(a = runif(10, 10, 100))
text_range(df, 'a')

YuanchenZhu2020/antgreens documentation built on Dec. 18, 2021, 8:20 p.m.