Learn R Programming

COINr (version 1.1.14)

build_example_coin: Build ASEM example coin

Description

Shortcut function to build the ASEM example coin, using inbuilt example data. This can be useful for testing and also for building reproducible examples. To see the underlying commands run edit(build_example_coin). See also vignette("coins").

Usage

build_example_coin(up_to = NULL, quietly = FALSE)

Value

coin class object

Arguments

up_to

The point up to which to build the index. If NULL, builds full index. Else specify a building function (as a string) - the index will be built up to and including this function. This option is mainly for helping with function examples. Example: up_to = "Normalise".

quietly

If TRUE, suppresses all messages.

Details

This function replaces the now-defunct build_ASEM() from COINr < v1.0.

Examples

Run this code
# build example coin up to data treatment step
coin <- build_example_coin(up_to = "Treat")
coin

Run the code above in your browser using DataLab