ccbind | R Documentation |
This function perform a conditional cbind or rbind.
ccbind(x, y, bind = TRUE, message = NA)
crbind(x, y, bind = TRUE, message = NA)
x |
first element to combine |
y |
second element to combine |
bind |
condition (TRUE or FALSE) for combine x and y or return only x |
message |
message in case of bind is false (no binding) |
ccbind()
: Perform a conditional cbind
crbind()
: Perform a conditional rbind
a <- 1:10
b <- 2:11
ccbind(a,b,length(a) == length(b))
ccbind(a,b,length(a) == 12, message = 'returning x = a')
crbind(a,b,length(a) > 9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.