syntactic: Syntactic naming functions

camelCaseR Documentation

Syntactic naming functions

Description

Syntactic naming functions

Usage

camelCase(object, ...)

dottedCase(object, ...)

snakeCase(object, ...)

upperCamelCase(object, ...)

## S4 method for signature 'DFrame'
camelCase(
  object,
  rownames = FALSE,
  colnames = TRUE,
  mcols = TRUE,
  metadata = TRUE,
  strict = TRUE
)

## S4 method for signature 'Matrix'
camelCase(object, rownames = FALSE, colnames = TRUE, strict = TRUE)

## S4 method for signature 'Ranges'
camelCase(object, names = FALSE, mcols = TRUE, metadata = TRUE, strict = TRUE)

## S4 method for signature 'SummarizedExperiment'
camelCase(
  object,
  rownames = FALSE,
  colnames = TRUE,
  assayNames = TRUE,
  rowData = TRUE,
  colData = TRUE,
  metadata = TRUE,
  strict = TRUE
)

## S4 method for signature 'Vector'
camelCase(object, names = TRUE, mcols = TRUE, metadata = TRUE, strict = TRUE)

## S4 method for signature 'atomic'
camelCase(object, names = TRUE, strict = TRUE)

## S4 method for signature 'data.frame'
camelCase(object, rownames = FALSE, colnames = TRUE, strict = TRUE)

## S4 method for signature 'factor'
camelCase(object, names = TRUE, strict = TRUE)

## S4 method for signature 'list'
camelCase(object, names = TRUE, strict = TRUE)

## S4 method for signature 'matrix'
camelCase(object, rownames = FALSE, colnames = TRUE, strict = TRUE)

## S4 method for signature 'DFrame'
dottedCase(
  object,
  rownames = FALSE,
  colnames = TRUE,
  mcols = TRUE,
  metadata = TRUE
)

## S4 method for signature 'Matrix'
dottedCase(object, rownames = FALSE, colnames = TRUE)

## S4 method for signature 'Ranges'
dottedCase(object, names = FALSE, mcols = TRUE, metadata = TRUE)

## S4 method for signature 'SummarizedExperiment'
dottedCase(
  object,
  rownames = FALSE,
  colnames = TRUE,
  assayNames = TRUE,
  rowData = TRUE,
  colData = TRUE,
  metadata = TRUE
)

## S4 method for signature 'Vector'
dottedCase(object, names = TRUE, mcols = TRUE, metadata = TRUE)

## S4 method for signature 'atomic'
dottedCase(object, names = TRUE)

## S4 method for signature 'data.frame'
dottedCase(object, rownames = FALSE, colnames = TRUE)

## S4 method for signature 'factor'
dottedCase(object, names = TRUE)

## S4 method for signature 'list'
dottedCase(object, names = TRUE)

## S4 method for signature 'matrix'
dottedCase(object, rownames = FALSE, colnames = TRUE)

## S4 method for signature 'atomic'
snakeCase(object, names = TRUE)

## S4 method for signature 'data.frame'
snakeCase(object, rownames = FALSE, colnames = TRUE)

## S4 method for signature 'factor'
snakeCase(object, names = TRUE)

## S4 method for signature 'list'
snakeCase(object, names = TRUE)

## S4 method for signature 'matrix'
snakeCase(object, rownames = FALSE, colnames = TRUE)

## S4 method for signature 'DFrame'
snakeCase(
  object,
  rownames = FALSE,
  colnames = TRUE,
  mcols = TRUE,
  metadata = TRUE
)

## S4 method for signature 'Matrix'
snakeCase(object, rownames = FALSE, colnames = TRUE)

## S4 method for signature 'Ranges'
snakeCase(object, names = FALSE, mcols = TRUE, metadata = TRUE)

## S4 method for signature 'SummarizedExperiment'
snakeCase(
  object,
  rownames = FALSE,
  colnames = TRUE,
  assayNames = TRUE,
  rowData = TRUE,
  colData = TRUE,
  metadata = TRUE
)

## S4 method for signature 'Vector'
snakeCase(object, names = TRUE, mcols = TRUE, metadata = TRUE)

## S4 method for signature 'DFrame'
upperCamelCase(
  object,
  rownames = FALSE,
  colnames = TRUE,
  mcols = TRUE,
  metadata = TRUE,
  strict = TRUE
)

## S4 method for signature 'Matrix'
upperCamelCase(object, rownames = FALSE, colnames = TRUE, strict = TRUE)

## S4 method for signature 'Ranges'
upperCamelCase(
  object,
  names = FALSE,
  mcols = TRUE,
  metadata = TRUE,
  strict = TRUE
)

## S4 method for signature 'SummarizedExperiment'
upperCamelCase(
  object,
  rownames = FALSE,
  colnames = TRUE,
  assayNames = TRUE,
  rowData = TRUE,
  colData = TRUE,
  metadata = TRUE,
  strict = TRUE
)

## S4 method for signature 'Vector'
upperCamelCase(
  object,
  names = TRUE,
  mcols = TRUE,
  metadata = TRUE,
  strict = TRUE
)

## S4 method for signature 'atomic'
upperCamelCase(object, names = TRUE, strict = TRUE)

## S4 method for signature 'data.frame'
upperCamelCase(object, rownames = FALSE, colnames = TRUE, strict = TRUE)

## S4 method for signature 'factor'
upperCamelCase(object, names = TRUE, strict = TRUE)

## S4 method for signature 'list'
upperCamelCase(object, names = TRUE, strict = TRUE)

## S4 method for signature 'matrix'
upperCamelCase(object, rownames = FALSE, colnames = TRUE, strict = TRUE)

Arguments

object

Object.

rownames

logical(1). Apply sanitization on row names. This is not generally recommended by default, since rownames commonly contain gene identifiers that should not be modified.

colnames

logical(1). Apply to column names.

mcols

logical(1). Sanitize names of metadata columns.

metadata

logical(1). Sanitize metadata names.

strict

logical(1). Enforce strict name sanitization. When TRUE, this does not allow the return of any capitalized acronyms. "RNA" will become "Rna", for example.

names

logical(1). Sanitize names.

Only applies to string mode (rename = FALSE).

assayNames

logical(1). Sanitize assay names.

rowData

logical(1). Sanitize the row data names.

colData

logical(1). Sanitize column names of column data.

...

Additional arguments.

Note

Updated 2023-04-27.

Examples

data(syntactic, package = "AcidTest")
lapply(syntactic, camelCase)

acidgenomics/r-acidexperiment documentation built on Jan. 17, 2024, 7:56 p.m.