powered by
check if the data is available for rbind() or cbind()
rbind()
cbind()
checkBind(data, bind)
data can be processed by bind function; data cannot be processed by bind function
A list containing different sublists ready to be processed by do.call('rbind') or do.call('cbind')
do.call('rbind')
do.call('cbind')
A string showing which bind you are going to use can be 'rbind' or 'cbind'
data <- list(c(1,1,1),c(2,2,2)) bind <- 'rbind' checkBind(data,bind) data(testdl) if (FALSE) { checkBind(testdl, 'rbind') } # Since the colnames in testdl are not the same, so it cannot be bound. #
Run the code above in your browser using DataLab