setspell_selected: creates spells and run-lengths

Description Usage Arguments Value Examples

View source: R/setspell-setspell_selected.R

Description

creates spells and run-lengths, by reference

Usage

1
2
3
4
5
6
7
8
9
setspell_selected(
  dtx,
  grp,
  var1,
  value,
  check_value = TRUE,
  max = TRUE,
  pos = "end"
)

Arguments

grp

grouping variables within-which to calculate on

var1

variable to calcute run- and spell-lengths on.

pos

where should the variables be located in the data.table?

DT

a data.table

rename

should the spells and run-lengths be named after the original variabel or genericaly named?

Value

This function creates, by reference, four variables with run- and spell-length-type information.

Examples

1
2
3
4
## Not run: 
function(arg1)

## End(Not run)

emilBeBri/dttools documentation built on April 21, 2021, 5:44 a.m.