odataCleanName: odataCleanName - converts names to ODATA compliant version....

Description Usage Arguments Details Value Using refType parameter Author(s) Examples

View source: R/odataCleanName.R

Description

odataCleanName - converts names to ODATA compliant version. Used to clean names in ODATA calls.

Usage

1
odataCleanName(name, refType = "odataObject")

Arguments

name

string to clean

refType

Reference to the type of object being passed (default: odataObject).

Details

odataCleanName Clean a name for ODATA.

Value

Returns name in ODATA compliant form

Using refType parameter

refType accepts two values, the default "odataObject" and "tenant". "odataObject" ensures that a leading underscore is placed in front of numbers at the beginning of the string to comply with OData Standards. This function can be used for other objects as well to replace spaces and hyphens with underscores. When refType is set to "tenant", underscores are substituted for spaces, but leaves hyphens intact.

Author(s)

Craig Parman info@ngsanalytics.com

Adam Wheeler adam.wheeler@thermofisher.com

Scott Russell scott.russell@thermofisher.com

Examples

1
2
3
4
5
6
7
## Not run: 
new_name <- odataCleanName("384 Well Plate")
# returns "_384_WELL_PLATE"
new_name <- odataCleanName("384 Well Plate", "tenant")
# returns "384_WELL_PLATE"

## End(Not run)

AmundsenJunior/pfsrsdk documentation built on July 18, 2019, 8:10 p.m.