Description Usage Arguments Details Value Using refType parameter Author(s) Examples
View source: R/odataCleanName.R
odataCleanName
- converts names to ODATA compliant version. Used to clean names in ODATA calls.
1 | odataCleanName(name, refType = "odataObject")
|
name |
string to clean |
refType |
Reference to the type of object being passed (default: odataObject). |
odataCleanName
Clean a name for ODATA.
Returns name in ODATA compliant form
refType
parameterrefType
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.
Craig Parman info@ngsanalytics.com
Adam Wheeler adam.wheeler@thermofisher.com
Scott Russell scott.russell@thermofisher.com
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.