Update functions.Rmd (#591)
This commit is contained in:
parent
fe883cb46a
commit
a2f7418c10
|
@ -59,7 +59,7 @@ x <- df$a
|
|||
(x - min(x, na.rm = TRUE)) / (max(x, na.rm = TRUE) - min(x, na.rm = TRUE))
|
||||
```
|
||||
|
||||
There is some duplication in this code. We're computing the range of the data three times, but it makes sense to do it in one step:
|
||||
There is some duplication in this code. We're computing the range of the data three times, so it makes sense to do it in one step:
|
||||
|
||||
```{r}
|
||||
rng <- range(x, na.rm = TRUE)
|
||||
|
|
Loading…
Reference in New Issue