inst/doc/syntax.R

## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(dcmodify)
library(dcmodifydb)

## -----------------------------------------------------------------------------
m <- modifier( if (age < 12) income = 0)

## -----------------------------------------------------------------------------
m <- modifier(if (age > 67) {retired = TRUE} else {retired = FALSE})

## -----------------------------------------------------------------------------
m <- modifier( 
  if (age > 67) {
    retired = TRUE
    salary = 0 
  }
)

Try the dcmodifydb package in your browser

Any scripts or data that you put into this service are public.

dcmodifydb documentation built on June 17, 2022, 5:05 p.m.