Description Usage Arguments Value Examples
Check that the input data is usable as a CTD cast (not fully missing and of compatible length). Used by other functions.
1 | check_input(x, depth = NULL)
|
x |
vector of the variable of interest. |
depth |
vector of depths at which |
TRUE when the data is ok, FALSE when it is fully missing, FALSE and throws an error when depth
is not the same length as x
.
1 2 3 4 5 | castr:::check_input(c(22.1, 23.4, 23.2), c(1, 2, 3))
castr:::check_input(c(NA, NA, NA), c(1, 2, 3))
## Not run:
castr:::check_input(c(22.1, 23.4, 23.2), c(1, 2))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.