View source: R/compute_functions_helpers.R
checks_compute_functions | R Documentation |
experimental Perform checks within 'compute_*()' functions. The checks performed are:
The file is a data.frame type of object.
'varaible' is a column in file
'variable' is a numeric variable.
The weight variable is a column in file.
'weight' variable contains valid values (i.e. different than NAs and 0s).
checks_compute_functions(file, file_name, variable, weight = NULL)
file |
A LIS or LWS file. |
file_name |
The name of the LIS or LWS file. |
variable |
A string with the name of the variable for which checks should be computed. |
weight |
A string with the name of the variable in 'file' that should be used as sample weights. If NULL (default), checks for weight variable are not performed. |
The checks related to the 'weight' variable are only performed if argument 'weight' is not NULL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.