operatable_columns: Determines what column names can be operated upon.

View source: R/general_utilities.R

operatable_columnsR Documentation

Determines what column names can be operated upon.

Description

Uses column classes and sample_key to determine what columns can be operated upon.

Usage

operatable_columns(
  col_names = NULL,
  my_dt,
  acceptable_classes = NULL,
  sample_key = "Run_ID"
)

Arguments

col_names

Vector of character strings to name the columns that will have this operation performed on them.

my_dt

data.table input

acceptable_classes

Character vector of classes that are acceptable to perform whatever operation. col_names not of this class will not be returned.

sample_key

Character string to specify the column that is the sample key. This column will not be operated upon.

Details

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ operatable_columns ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Benjamin-Vincent-Lab/binfotron documentation built on Oct. 1, 2024, 8:33 p.m.