checkBind function

Check data for bind function.

Check data for bind function.

check if the data is available for rbind() or cbind()

checkBind(data, bind)

Arguments

  • data: A list containing different sublists ready to be processed by do.call('rbind')

    or do.call('cbind')

  • bind: A string showing which bind you are going to use can be 'rbind' or 'cbind'

Returns

data can be processed by bind function; data cannot be processed by bind function

Examples

data <- list(c(1,1,1),c(2,2,2)) bind <- 'rbind' checkBind(data,bind) data(testdl) ## Not run: checkBind(testdl, 'rbind') ## End(Not run) # Since the colnames in testdl are not the same, so it cannot be bound. #

Other functions in hyfo

Related functions from the same R package

  • Maintainer: Yuanchao Xu
  • License: GPL-2
  • Last published: 2023-08-16