Learn R Programming

immunarch (version 0.6.4)

switch_type: Return a column's name

Description

Return a column's name

Usage

switch_type(type)

process_col_argument(.col)

Arguments

type

Character. Specifies the column to choose: "nt" chooses the CDR3 nucleotide column, "aa" chooses the CDR3 amino acid column, "v" chooses the V gene segment column, "j" chooses the J gene segment column.

.col

A string that specifies the column(s) to be processed. Pass one of the following strings, separated by the plus sign: "nt" for nucleotide sequences, "aa" for amino acid sequences, "v" for V gene segments, "j" for J gene segments.

Value

A column's name.

Examples

Run this code
# NOT RUN {
immunarch:::switch_type("nuc")
immunarch:::switch_type("v")
# }

Run the code above in your browser using DataLab