text_threshold: Generate Text Describing the Threshold

Description Usage Arguments Value Examples

View source: R/text_utils.R

Description

This function

Usage

1
text_threshold(threshold_data, dims, ana_dims)

Arguments

threshold_data

a data frame with threshold information.

dims

character vector. All dimensions.

ana_dims

character vector. The dimensions to be analysed in this case.

Value

character of paragraph that describes the threshold in the case.

Examples

1
2
df <- data.frame(year=c(1,0,0,1),quarter=c(0,1,0,0),province=c(0,0,1,1),threshold = runif(4))
text_threshold(df, c('year','quarter','province'), c('year', 'province'))

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