Learn R Programming

spongebob (version 0.4.0)

tospongebob.data.frame: SpongeBob-Case Conversion for Data Frames

Description

Convert data.frame objects to Mocking SpongeBob case. This is the S3 method for data.frame objects. Generally, you will not be using this method directly; instead, use the S3 generic tospongebob. If you really need to use this method, you will need to do spongebob:::tospongebob.data.frame because it is an internal method.

This method will convert character and factor columns to Mocking SpongeBob case. It will also optionlly convert column and row names, enabled by default.

Usage

# S3 method for data.frame
tospongebob(x, ..., convert.rownames = TRUE,
  convert.colnames = TRUE)

Arguments

x

data.frame with text to be converted to Mocking SpongeBob case.

...

onlY hERe tO sATisFy R CMd CHeCk.

convert.rownames

logical, indicating whether or not to convert the row names of the data.frame

convert.colnames

logical, indicating whether or not to convert the column names of the data.frame

Value

data.frame with its text converted to Mocking SpongeBob case.

See Also

tospongebob

Examples

Run this code
# NOT RUN {
df1 <- head(datasets::CO2)
tospongebob(df1)

df2 <- head(datasets::mtcars)
tospongebob(df2)
# }

Run the code above in your browser using DataLab