getenum_df_single: Generate a data.frame of counts from an enumeration.

Description Usage Arguments Details Value See Also Examples

View source: R/verisr2.R

Description

Generate counts from the values given one enumeration and return both the count and proportion. Replicates in base R the getenum.single function from verisr which referenced deprecated code from data.table.

Usage

1

Arguments

data

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

params

Character representing the fields of interest (enumeration).

Details

You almost always want to use getenum_df instead, which is a more generalized wrapper that returns an identical data frame when called with one field.

Value

a data frame with count and frequency from enumerating on one field.

See Also

getenum_df for a more generalized implementation of this function

Examples

1
getenum_df_single(vcdb, "actor.external.variety")

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