Description Usage Arguments Value Examples
In a given tibble a numeric value can be replaced by another numeric value.
1 | tbl_replace_numeric(tbl, value, replace_by)
|
tbl |
a tbl. |
value |
a numeric which is to be replaced from |
replace_by |
a numeric replacement for |
a tbl
1 2 3 4 5 6 7 8 9 | ## Not run:
set.seed(1234)
tbl <- tibble::tibble(x = c(letters[1:5] ,letters[1:5]),
y = sample(1:5, 10 ,replace = T),
z = sample(1:5, 10,replace = T))
tbl %>% tbl_replace_numeric(2, 1000)
tbl %>% tbl_replace_numeric(4, 1000)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.