determine_primary: Determine the primary value from each enumeration group...

Description Usage Arguments Value Examples

View source: R/collapse.R

Description

For each row, find a value that represent the enumeration. If all values in the group is NA, replace with "Unknown" variable

Usage

1

Arguments

data

A data frame object, typically converted from the VCDB JSON format

Value

a character vector of the values that represent that enumeration for each numeric observation

Examples

1
2
determine_primary(vcdb, "action.hacking.variety")
table(determine_primary(vcdb, c("action.hacking.result", "action.hacking.variety")))

onlyphantom/verisr2 documentation built on May 20, 2019, 12:19 p.m.