| UnknownFuns | R Documentation |
Unknown or missing values (NA in R) can be represented in various ways (as 0, 999, etc.) in different programs. isUnknown, unknownToNA, and NAToUnknown can help to change unknown values to NA and vice versa.
isUnknown(x, unknown=NA, ...) unknownToNA(x, unknown, warning=FALSE, ...) NAToUnknown(x, unknown, force=FALSE, call.=FALSE, ...) ## Default S3 method: isUnknown(x, unknown, ...) ## S3 method for class 'POSIXlt' isUnknown(x, unknown, ...) ## S3 method for class 'list' isUnknown(x, unknown, ...) ## S3 method for class 'data.frame' isUnknown(x, unknown, ...) ## S3 method for class 'matrix' isUnknown(x, unknown, ...) unknownToNA(x, unknown, warning = FALSE, ...) ## Default S3 method: unknownToNA(x, unknown, warning, ...) ## S3 method for class 'factor' unknownToNA(x, unknown, warning, ...) ## S3 method for class 'list' unknownToNA(x, unknown, warning, ...) ## S3 method for class 'data.frame' unknownToNA(x, unknown, warning, ...) NAToUnknown(x, unknown, force = FALSE, call. = FALSE, ...) ## Default S3 method: NAToUnknown(x, unknown, force, call., ...) ## S3 method for class 'factor' NAToUnknown(x, unknown, force, call., ...) ## S3 method for class 'list' NAToUnknown(x, unknown, force, call., ...) ## S3 method for class 'data.frame' NAToUnknown(x, unknown, force, call., ...) .unknownList(x, unknown)
x |
generic, object with unknown value(s) |
unknown |
generic, value used instead of |
... |
arguments pased to other methods (as.character for POSIXlt in case of isUnknown) |
warning |
logical, issue warning if |
force |
logical, force to apply already existing value in |
call. |
logical, look in |
Gregor Gorjanc
AlphaPart
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.