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

Description Usage Arguments Value See Also Examples

View source: R/tospongebob.R

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

1
2
3
## S3 method for class '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

1
2
3
4
5

Example output

  PLant   tyPe  TrEaTmenT conC upTakE
1   qN1 QuEBeC NOncHiLLeD   95   16.0
2   qN1 QuEBeC NOncHiLLeD  175   30.4
3   qN1 QuEBeC NOncHiLLeD  250   34.8
4   qN1 QuEBeC NOncHiLLeD  350   37.2
5   qN1 QuEBeC NOncHiLLeD  500   35.3
6   qN1 QuEBeC NOncHiLLeD  675   39.2
                   MPg CYl DISp  HP drAT    wT  QsEc vs AM gEaR carB
MazDa rX4         21.0   6  160 110 3.90 2.620 16.46  0  1    4    4
MAzdA RX4 wAg     21.0   6  160 110 3.90 2.875 17.02  0  1    4    4
dATsuN 710        22.8   4  108  93 3.85 2.320 18.61  1  1    4    1
HoRnET 4 DrIVe    21.4   6  258 110 3.08 3.215 19.44  1  0    3    1
HOrNet sPortAbouT 18.7   8  360 175 3.15 3.440 17.02  0  0    3    2
vaLiaNt           18.1   6  225 105 2.76 3.460 20.22  1  0    3    1

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