xybind: Combine R Objects by Columns or Rows

ccbindR Documentation

Combine R Objects by Columns or Rows

Description

This function perform a conditional cbind or rbind.

Usage

ccbind(x, y, bind = TRUE, message = NA)

crbind(x, y, bind = TRUE, message = NA)

Arguments

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)

Functions

  • ccbind(): Perform a conditional cbind

  • crbind(): Perform a conditional rbind

Examples

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)

Schuch666/hackWRF documentation built on June 9, 2025, 1:46 p.m.