Description Usage Arguments Note Author(s) Examples
View source: R/mosaic_en_v1.2.r
Create simple PDF-file for categorical data
1 | mosaic.createSimplePdfCategorical(inputfile, outputfolder)
|
inputfile |
path to input csv-file |
outputfolder |
path to output folder |
Function call type: user
The MOSAIC Project, Martin Bialke
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # load MOSAIC package
library('mosaicQA')
# specify the import file with categorial data
# first row has to contain variable names without special characters
categorial_datafile='c:/mosaic/cat_single_var_en.csv'
# specify output folder
outputFolder='c:/mosaic/outputs/'
# set treshold to detect missings, default is 99900 (adjust this line to change this global value,
# but be careful)
mosaic.setGlobalMissingTreshold(99900)
# set description of var
mosaic.setGlobalCodelist(c('1=yes','2=no','99996=not specified','99997=not acquired'))
# create simple pdf file foreach variable column in categorial data file, uncomment to start
# report-generation
# mosaic.createSimplePdfCategorical(categorial_datafile,outputFolder)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.