| remove_dots | R Documentation |
A convenience function to remove any duplicated full stops
(aka periods) from the elements of a vector, e.g. will change .. or ...
or .... etc. to just . Mainly used to fix column names.
remove_dots(x)
x |
|
Returns character or string with duplicate full stops removed.
df <- data.frame(
column...name = c(1, 2, 3)
)
colnames(df) <- remove_dots(colnames(df))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.