code_to_strand: Convert strand integer codes to strand words

View source: R/mapping.R

code_to_strandR Documentation

Convert strand integer codes to strand words

Description

This function converts an integer vector of values 1L or -1L to 'forward' or 'reverse', respectively.

Usage

code_to_strand(code, .default = NA_character_, .missing = NA_character_)

Arguments

code

Integer vector of strandness codes: 1L or -1L.

.default

What value to use by default for values other than 1L or -1L.

.missing

What value to use when recoding NA_integer_.

Value

A character vector.

See Also

strand_to_code


ramiromagno/ensemblr documentation built on Sept. 5, 2024, 9:22 a.m.