Learn R Programming

SomaDataIO (version 6.2.0)

cleanNames: Clean Up Character String

Description

Often the names, particularly within soma_adat objects, are messy due to varying inputs, this function attempts to remedy this by removing the following:

  • trailing/leading/internal whitespace

  • non-alphanumeric strings (except underscores)

  • duplicated internal dots (..), (...), etc.

  • SomaScan normalization scale factor format

Usage

cleanNames(x)

Value

A cleaned up character string.

Arguments

x

Character. String to clean up.

Author

Stu Field

See Also

Examples

Run this code
cleanNames("    sdkfj...sdlkfj.sdfii4994### ")

cleanNames("Hyb..Scale")

Run the code above in your browser using DataLab