go_ms_fi {convergEU}R Documentation

Create a country fiche for an indicator

Description

An auxiliary function to compile a rmarkdown file to produce a country fiche in html format within the output directory.

Usage

go_ms_fi(
  workDF = NA,
  countryRef = NA,
  otherCountries = c(NA, NA),
  time_0 = NA,
  time_t = NA,
  tName = NA,
  indiType = NA,
  aggregation = NA,
  x_angle = NA,
  dataNow = NA,
  author = NA,
  outFile = NA,
  outDir = NA,
  indiName = NA,
  workTB = NULL
)

Arguments

workDF

name (string) of the dataset with all countries contributing to average

countryRef

country of main interest

otherCountries

other countries for comparison

time_0

starting time

time_t

ending time

tName

name of the variable containing times (years)

indiType

type of indicator "lowBest" or "highBest"

aggregation

label indicator the reference group of countries ('custom' if not pre-coded)

x_angle

axis orientation for time labels

dataNow

date of production of this country fiche

author

author of this report

outFile

name of the output file (without path)

outDir

output directory, eventually not existing (only one level allowed)

indiName

name of the considered indicator

workTB

tibble containing data, optional, as alternative to a global object.

Details

Note that most of function arguments are passed as strings of characters instead of object names. For example, if the object of a dataset in the workspace is myTB, the parameter is set like workDF='myTB' instead of workDF=myTB as one may expect. Furthermore, the dataset must be complete, that is without missing values. Note also that connection to Internet should be available when invoking the function to properly rendering the results in the html file. A tibble object containing data can be passed with the argument workTB instead of a string.

References

https://www.eurofound.europa.eu/system/files/2022-04/introduction-to-the-convergeu-package-0.6.4-tutorial-v2-apr2022.pdf


[Package convergEU version 0.7.3.2 Index]