Description Usage Arguments Value Examples
Generate Text Describing Three Maximum Two-Items
1 2 3 4 5 6 7 8 | text_two_max_3(
data,
rate_text,
item_name_1,
item_name_2,
rate_name,
conjunction
)
|
data |
a data frame |
rate_text |
character. The character used in the text to represent the rate name. |
item_name_1 |
character. The name of column in |
item_name_2 |
character. The name of column in |
rate_name |
character. The name of column in |
conjunction |
character. It is the conjunction between the first item and the second item to make the sentence more fluent. |
character of a sentence.
1 2 3 | df <- data.frame(rate = runif(4), item1 = c("a",'b','c','d'), item2 = c("ab",'bc','cd','de'))
text_two_max_3(df, "\u6d4b\u8bd5\u7387", "item1", "item2", "rate")
text_two_max_3(df, "\u6d4b\u8bd5\u7387", "item1", "item2", "rate", conjunction = "")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.