addcht: Add a new factor with a change between the values of two...

Description Usage Arguments Details Value

View source: R/addcht.R

Description

This function is used to calculate changes between values of categories (dates, ages, countries, etc).

Usage

1
addcht(df, VarA, VarB, Var, Value)

Arguments

...

numeric

Details

The data may come as TIDY, meaning that all values are in 1 column and other columns show information related to the value, meaning categories.

All inputs must be in quotes ("").

Inputs:

  1. df = is the database containing a column with Factors.

  2. Var1 = ARE the "VariableS" valueS that will be used to calculate the differences vs Var0.

  3. Var0 = IS the Variable value anchor for all changes calculation.

Var1, Var0 and Var must be factors with leverls or characters NOT NUMBERS

Value

a dataframe


aalvaradob/utildf documentation built on Oct. 7, 2020, 3:05 p.m.