find_replace | R Documentation |
Search all object names in the global environment for a regex pattern, and replace that pattern with specified text. This is actually done by creating copies of the objects with new names and deleting the original versions, which may consume large amounts of memory if the objects are large. By default, the user is prompted before objects are renamed.
find_replace(
pattern, replace, pattern_find = NULL, ask = TRUE, envir = .GlobalEnv)
pattern |
character string, the regex pattern to replace. Passed to |
replace |
character string, the text with which to replace |
pattern_find |
optional character string used to determine objects. Can be different from |
ask |
logical, whether to prompt the user before replacing objects. Defaults to TRUE. |
envir |
the name of the environment in which to make the changes. Defaults to the global environment, |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.