Skip to contents

This function combines two mass_dataset objects by rows. It checks for compatibility in terms of sample information, variable information, and other attributes before performing the row-wise binding.

Usage

rbind_mass_dataset(x, y, deparse.level = 1)

Arguments

x

A mass_dataset object. If missing, the function returns y.

y

A mass_dataset object. If missing, the function returns x.

deparse.level

Not used, for compatibility only.

Value

A new mass_dataset object that is the row-wise combination of x and y.

Author

Xiaotao Shen xiaotao.shen@outlook.com

Examples

data("expression_data")
data("sample_info")
data("variable_info")
object <- create_mass_dataset(
  expression_data = expression_data,
  sample_info = sample_info,
  variable_info = variable_info
)
x <- object[1:3, 1:3]
y <- object[4:6, 1:3]

result <- rbind_mass_dataset(x, y)
dim(result)
#> variables   samples 
#>         6         3