StringToNumbers: Transform strings to numbers.

Description Usage Arguments Value Examples

Description

Takes a vector of strings and outputs simple numbers. This takes care of the case where conditions are listed as strings (basal, IL7), in which case they are converted to numbers (1, 2)

Usage

1
StringToNumbers(strings)

Arguments

strings

vector of strings

Value

strings: same vector with each unique element converted to a number

Examples

1
2
ex.string <- c("unstim", "unstim", "stim", "stim", "stim")
StringToNumbers(ex.string)

tjburns08/Sconify documentation built on May 31, 2019, 8:56 a.m.