checkSize | R Documentation |
Used to determine that all required variables are passed to a function Checks whether a vector has length > 0 or a data.table/data.frame has nrow > 0
checkSize(v)
v |
Variable (required) |
Logical: TRUE if size is not 0, false if size is 0
x <- c()
checkSize(x)
x <- c(2,5)
checkSize(x)
A <- c()
B <- c(1,2,3)
sapply(c("A","B"),function(x){checkSize(get(x))})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.