text_max_3: Generate Text Describing Three Maximum Items

Description Usage Arguments Value Examples

View source: R/text_utils.R

Description

Generate Text Describing Three Maximum Items

Usage

1
text_max_3(data, rate_text, item_name, rate_name)

Arguments

data

a data frame

rate_text

character. The character used in the text to represent the rate name.

item_name

character. The name of column in data storing the name of item.

rate_name

character. The name of column in data storing the value of rate.

Value

character of a sentence.

Examples

1
2
df <- data.frame(rate = runif(4), item = c("a",'b','c','d'))
text_max_3(df, "\u6d4b\u8bd5\u7387", "item", "rate")

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