Description Usage Arguments Value
This function uses some basic heuristics to guess the basic variable type. The options are "Empty", "Constant", "Logical", "Date" "Categorical" "Continous" or "Undeclared". It guesses using these rules, in order:
- If all values are NA or all are "" (up to 5 spaces) then it is "Empty" - If there is only one value, not including NAs, it it "Constant" - If class is Logical or levels contain only (case insensitive) TRUE/FALSE/ T/F, YES/NO, Y/N, or 0/1 then it is "Logical" - If class is Date then it is "Date" - If class is factor or unique values is less 20 then it is "Categorical" - if variable come contains case insensitive "id" then it is "Identifier" - If class is integer or numeric it is "Continous" - If class is Character then it is "Character" - Otherwise it is "Unclassified"
1 | determineVarType(varname, df)
|
varname |
Variable to which type is to be determined. |
df |
Dataset in which variable resides |
A variable type of "ID", "Likely ID",
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.