analyze_gesis_file: Analyze a GESIS file

Description Usage Arguments Examples

Description

There is a rather cumbersome exception handling with not-unique GESIS variable names, which occur when certain questions are only asked in some geographical units, such as the Turkish community of Cyprus. In these cases, GESIS may or may not give unique variable names. Some futher problems may arrise, currently the code detects this problem.

Usage

1
2
analyze_gesis_file(gesis_file, see_log = TRUE, create_log = TRUE,
  log_prefix = NA, log_id = NA, my_treshold = futile.logger::WARN)

Arguments

gesis_file

The full path to the GESIS SPSS file or a data.frame read by haven consisting the contents of the file.

see_log

TRUE which will print messages to the screen.

create_log

It will create log files in the sr_logs director.

log_prefix

Defaults to NA, in which case a new one will be assigned to the logs (if they are requested.) The log_prefix can be directly assigned.

log_id

Defaults to NA, in which case a new one will be assigned to the logs (if they are requested.) The log_prefix can be directly assigned.

my_treshold

Can be futile.logger::WARN, futile.logger::INFO, futile.logger::ERROR.

Examples

1
2
3
4
5
6
7
8
## Not run: 
##use your own file path:
analyse_gesis_file( path = " ... your own file path ... ",
                   see_log = TRUE,
                   create_log = TRUE,
                   my_treshold = futile.logger::INFO)

## End(Not run)

antaldaniel/surveyreader documentation built on May 16, 2019, 2:29 a.m.