Learn R Programming

CTD (version 1.3)

data.combineData: Combine datasets

Description

Combine datasets

Usage

data.combineData(curr_data, more_data)

Value

combined.data - Combined data matrix.

Arguments

curr_data

- Current data matrix

more_data

- Data matrix you want to combine with curr_data.

Examples

Run this code
# Row names and column names are required for both input matrices.
curr_data=matrix(rnorm(500), ncol=100)
rownames(curr_data)=sprintf("Feature%d",sample(seq_len(20), 
                                nrow(curr_data),replace = FALSE))
colnames(curr_data)=sprintf("Sample%d", seq_len(ncol(curr_data)))
more_data=matrix(rnorm(500), ncol=100)
rownames(more_data)=sprintf("Feature%d",sample(seq_len(20), 
                                nrow(curr_data),replace = FALSE))
colnames(more_data) = sprintf("Sample%d", seq_len(ncol(curr_data)))
combined.data = data.combineData(curr_data, more_data)

Run the code above in your browser using DataLab