Convert list-like objects to
Mocking SpongeBob
case. This is the default S3 method the S3 generic
tospongebob
. Generally, you will not need to use this method
directly; instead, use tospongebob
. If you really need to use
this method, you will need to do spongebob:::tospongebob.default
because it is an internal method.
# S3 method for default tospongebob(x, ..., convert.names = TRUE)
x | object 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 |
object with its text converted to Mocking SpongeBob case. ObjECt WiTH iTS tEXt CONvErTeD TO mOCkinG SponGEBob CasE.
nicktoons <- list( spongebob = list( episodes = c("Help Wanted", "Reef Blower", "Tea at the Treedome"), characters = c("SpongeBob", "Patrick", "Squidward", "Sandy") ), hey_arnold = list( episodes = c("Downtown as Fruits", "Eugene's Bike"), characters = c("Arnold", "Gerald", "Helga") ) ) spongebob:::tospongebob.default(nicktoons)#> $SpOnGebOB #> $SpOnGebOB$ePIsoDEs #> [1] "helP wAnteD" "rEeF blOweR" "TeA at THE treEDoME" #> #> $SpOnGebOB$chARactERS #> [1] "sPOngEbOb" "PAtriCk" "squIDwARd" "SanDy" #> #> #> $Hey_aRNold #> $Hey_aRNold$ePisoDeS #> [1] "doWntoWn AS fRuITS" "EUgENE's BikE" #> #> $Hey_aRNold$CharActeRS #> [1] "aRNolD" "gERAld" "heLga" #> #>