keyFactors: private function that does work for keyTemplateSPSS and key template Stata

statdatKey(datf, datn, long = TRUE)

Arguments

datf

Data frame with factors

datn

Numeric data frame

long

Should the result be a long or wide key