get_tsfa_pchart: Extract triceps skinfold-for-age percentiles data

View source: R/growth_chart.R

get_tsfa_pchartR Documentation

Extract triceps skinfold-for-age percentiles data

Description

Function to extract triceps skinfold-for-age percentiles data from the World Health Organization (WHO) website on Child Growth Standards http://www.who.int/childgrowth/standards/" which contains a collection of reference data from the WHO Multicentre Growth Reference Study (MGRS). This function extracts the expanded data provided by WHO for creating growth charts for triceps skinfold-for-age z-scores.

Usage

get_tsfa_pchart(
  baseurl = "http://www.who.int/childgrowth/standards/",
  gender = c("boys", "girls")
)

Arguments

baseurl

Character value for the base URL of the WHO Child Growth Standards. The default is http://www.who.int/childgrowth/standards/. This can be adjusted should WHO change the base URL for the Child Growth Standards section of their website.

gender

A character value or vector that specifies the sex-specific reference data to extract. The default is c("boys", "girls").

Value

A data frame in tidy format with 8 coloumns and 52980 rows:

sex

Sex of child. 1 = boy; 2 = girl

month

Age of child in months. This is calculated from the original data using that data for age of child in days

day

Age of child in days. This is provided for by default in the original data

sd_type

Type of z-score. Can be one of 4SD, 3SD, 2SD, 1SD, 0, -1SD, -2SD, -3SD, -4SD

sd_value

Triceps skinfold (in centimetres) value for the specified sd_type

Author(s)

Ernest Guevarra

Examples

# Get triceps skinfold-for-age percentiles expanded tables for charting
#get_tsfa_pchart()


nutriverse/nutricheckr documentation built on April 1, 2022, 7:44 p.m.