Learn R Programming

timma (version 1.2.0)

findSameCol: Find the same column from a matrix

Description

A function to seek for the same column from a matrix

Usage

findSameCol(X, Y)

Arguments

X
a matrix
Y
a vector with the same length as each column in X.

Value

  • a vector of the column indexes which are the same as vector Y.

Examples

Run this code
data(tyner_interaction_binary)
data(tyner_sensitivity)
x<-data.frame(tyner_interaction_binary)
kinase_names<-dimnames(tyner_interaction_binary)
float<-sffsBinary(tyner_interaction_binary, tyner_sensitivity[,1])
k_select <- float$k_sel
select_kinase_names <- findSameSet(x, k_select, kinase_names)

Run the code above in your browser using DataLab