importveris: Import all vcdb incidents is a "ready" data frame

Description Usage Arguments Value Examples

View source: R/import.R

Description

This function is a thin wrapper over the json2veris function. In later versions of vcdb incidents, the original function may result in a dataframe where one or more of its variables is another level of nested list object(s). This function eliminates these columns, so they're in a more ready state for most data analysis tasks. '

Usage

1
importveris(dir, schema = "data/vcdb-merged.json")

Arguments

dir

The directory to list through. This may be a vector of directorites, in which case each all the matching files in each directory will be loaded.

schema

a full veris schema with enumerations included

Value

a data frame

Examples

1
importveris("~/Datasets/vcdb_small/")

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