htk_text_generator: Create dynamic text

View source: R/htk_text_generator.r

htk_text_generatorR Documentation

Create dynamic text

Description

generate dynamic text

Usage

htk_text_generator(
  data,
  category,
  main_vars,
  main_vars_label,
  sub_vars = NULL,
  sub_vars_label = NULL
)

Arguments

data

dataset with one row per country

category

name of the category: Efficiency, Affordability, Sustainability

vars

a vector of four variable codes that enter the algorithm, the first two are the variables of interest and the fourth one is a value [0,1] denoting the quality of the data

vars_label

a vector of three variable name that enter the algorithm

Value

a dataset containing the values of the indicator for each country and the paragraph of text interpretating the data

Author(s)

Manuel Betin, Federica De Pace, Naomi Cohen


manuelbetin/OECDHousingToolkit documentation built on July 5, 2023, 12:02 p.m.