ParseOption: Parse Option

View source: R/seqNdisplayR.R

ParseOptionR Documentation

Parse Option

Description

Internal function: Parse string into relevant R object class

Usage

ParseOption(option_str)

Arguments

option_str

string representation of the option

Details

String can represent a named list, unnamed list, named vector, unnamed vector or single value. If string contains ";" assumes a list; if string contains "," assumes a vector; individual strings are interprated as "NULL" -> NULL; if "TRUE" or "FALSE" –> TRUE/FALSE; if single number –> as.numeric; if single non-number –> as.character;

Author(s)

MS

Examples

ParseOption("1.2,3")
ParseOption("RNA-seq:1.2,3;TT-seq:2,4")


THJlab/seqNdisplayR documentation built on Aug. 31, 2024, 7:56 p.m.