SGP (version 0.7-1.0)

prepareSGP: Prepare data for SGP analyses

Description

Utility function/exemplar used to embed supplied long data into a list object as a keyed data.table.

Usage

prepareSGP(data, 
	var.names=NULL, 
	fix.duplicates="keep.all")

Arguments

data
A panel data set in long form. See embedded sgpData_LONG data set for an exemplar.
var.names
A list that includes all required columns that do not match the SGP conventions, as well as all secondary columns needed for summarization and reporting.
fix.duplicates
Argument for future functionality intended to deal with duplicate cases in supplied long data.

Value

  • Function returns an object of class SGP. The long data is in the data slot.

See Also

sgpData_LONG

Examples

Run this code
## prepareSGP is Step 1 of 5 of abcSGP
Demonstration_Data <- prepareSGP(sgpData_LONG)

Run the code above in your browser using DataLab