process.KDB: Process data from the KDB hierarchy

Description Usage Arguments Examples

Description

This function performs a number of cleaning and organisation routines to data from KDB.txt. Indiciate whether a routine should or not be performed by adjusting the TRUE/FALSE flags below.

Usage

1
2
process.KDB(KDB, remove_initial_spaces = TRUE, extract_tags = TRUE,
  make_lx_ids = TRUE, remove_emptylines = FALSE)

Arguments

KDB

The KDB data frame returned from read.KDB()

remove_initial_spaces

Remove space indents from the content data

extract_tags

Extract dictionary codes into a 'tag' column

make_lx_ids

Assign a unique sequential integer to each lx item in the dictionary data

remove_empty_lines

Remove lines with only spaces. Default is FALSE for retaining human readibility. Suggest TRUE when doing processing to down size the data frame.

Examples

1
2
3
4
5
6
process.KDB(read.KDB())

KDB <- read.KDB(process_data = FALSE)
KDB <- process.KDB(KDB)

KDB <- process.KDB(KDB, remove_emptylines = TRUE)

fauxneticien/anamR documentation built on May 16, 2019, 10:12 a.m.