Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

chConstruct

Construct year to year change


Description

A function for constructing year to year change

Usage

chConstruct(
  data,
  origVar,
  country = "FAOST_CODE",
  year = "Year",
  newVarName = NA,
  n = 1
)

Arguments

data

The data frame containing the data

origVar

The variable in which the year to year change is to be calculated

country

The column representing the index of country.

year

The column represing the index of year.

newVarName

The name assigned to the new variable, if missing then .CH will be appended.

n

The period for the change rate to be calculated.

Value

A data frame containing the computed year to year change rate.


FAOSTAT

Download Data from the FAOSTAT Database

v2.2.1
GPL (>= 2)
Authors
Michael C. J. Kao <michael.kao@fao.org>, Markus Gesmann, Filippo Gheri
Initial release
2020-11-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.