hadley / r4ds

R for data science: a book
http://r4ds.hadley.nz
Other
4.52k stars 4.19k forks source link

section 26.2 #1578

Closed piodb closed 12 months ago

piodb commented 12 months ago

a = (a - min(a, na.rm = TRUE)) / (max(a, na.rm = TRUE) - min(a, na.rm = TRUE)), b = (b - min(b, na.rm = TRUE)) / (max(b, na.rm = TRUE) - min(a, na.rm = TRUE)), ** should a there be "b" instead?

piodb commented 12 months ago

Ooops didn't read further down the page. Was just playing with this code in the R console.