StringToNumbers {Sconify} | R Documentation

## Transform strings to numbers.

### 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

    StringToNumbers(strings)

### Arguments

`strings` | vector of strings

### Value

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

### Examples

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

[Package Sconify version 1.0.4 Index]