Description Usage Arguments Value See Also Examples
Similar as ifelse
in the base package but only works with yes and no as ff
vectors.
1 | ffifelse(test, yes, no)
|
test |
logical or boolean |
yes |
an |
no |
an |
An ff vector of the same length as test
.
1 2 3 4 5 6 7 | data(iris)
ffiris <- as.ffdf(iris)
ffifelse(ffiris$Sepal.Length < 5, TRUE, NA)
ffifelse(ffiris$Sepal.Length < 5, factor(rep("abc", nrow(ffiris))), NA)
ffifelse(ffiris$Sepal.Length < 5, Sys.Date(), factor("abc"))
ffifelse( ffiris$Sepal.Length < 5, Sys.Date(), ff(seq.Date( Sys.Date()+1
, Sys.Date()+nrow(ffiris), by = "day")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.