tospongebob.character: SpongeBob-Case Conversion for Character Vectors

Description Usage Arguments Value See Also Examples

View source: R/tospongebob.R

Description

Convert character vectors to Mocking SpongeBob case. This is an S3 method for character vectors. 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.character because it is an internal method.

Usage

1
2
## S3 method for class 'character'
tospongebob(x, ..., convert.names = TRUE)

Arguments

x

character vector with text to be converted to Mocking SpongeBob case.

...

onlY hERe tO sATisFy R CMd CHeCk.

convert.names

logical, indicating whether or not to convert the names of the object

Value

the input vector with its text converted to Mocking SpongeBob case. tHe inPuT VecTor WItH its TeXt ConvErTed To MOckInG SPoNGebOB cASe.

See Also

tospongebob

Examples

1
2
3
4
5
spongebob:::tospongebob.character("SpongeBob-Case Conversion")
spongebob:::tospongebob.character(c(
    "S3 generic function",
    "Mocking SpongeBob case"
))

Example output

[1] "SPOnGEboB-casE conVersIOn"
[1] "S3 gEnERIc FunCTiOn"    "moCKinG SponGEboB CasE"

spongebob documentation built on May 2, 2019, 1:41 p.m.