Import and export functions for maintaining the SIP standard, as well as an auditable RNG
License: GNU General Public License v3.0
R 100.00%
r-sipmath-tools's Introduction
#This library is desgined to provide the user with the basic tools to import,
#export, and create random numbers for simulation in a method consistent with
#SIPmath standard. The code below provides an example of how the functions included
#in thie library can work together:
data <- mtcars
data$ID <- rownames(mtcars)[1:4]
meta <- SIPMetaDF(data, "ID", rownames(mtcars)[1:4], colnames(mtcars)[1:4])
testdf <-data.frame(matrix(ncol=4,nrow=100))
colnames(testdf) <- colnames(meta[1:4])
for (i in 1:4) {
testdf[i] <- HDRUniformGen(100)
}
ExportSIPLib(testdf, testxml.xml, average = TRUE, median = TRUE, meta = meta)
#If you find any errors, please contact [email protected]
#Authors: Aaron Brown, Daniel O'Neil