lsanitize: Cleans syntax of command, factor/level and channel names

View source: R/luna.R

lsanitizeR Documentation

Cleans syntax of command, factor/level and channel names

Description

Replaces potentially troublesome characters with an underscore

Usage

lsanitize(s)

Arguments

s

a string to be cleaned

Value

a cleaned string

Note

This function is a wrapper for the R command gsub("[^[:alnum:]]", "_", s), which replaces all non-alpha-numeric characters with an underscore. See the Luna lunaR tutorial for a motivating example.

Examples

lsanitize( "C3/M1" )


remnrem/luna documentation built on June 1, 2025, 2:14 p.m.