text_year_two_max_3: Generate Text Describing Three Maximum Two-Items By Year

Description Usage Arguments Value

View source: R/text_utils.R

Description

Generate Text Describing Three Maximum Two-Items By Year

Usage

1
2
3
4
5
6
7
8
9
text_year_two_max_3(
  data,
  year_range,
  rate_text,
  item_name_1,
  item_name_2,
  rate_name,
  conjunction
)

Arguments

data

a data frame

year_range

numeric vector represents the year.

rate_text

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

item_name_1

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

item_name_2

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

rate_name

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

conjunction

character. It is the conjunction between the first item and the second item to make the sentence more fluent.

Value

a character of sentence.


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