powered by
retract does the opposite of what stretch does
retract
stretch
retract(.data, x, y, val)
A data.frame or tibble containing at least three variables: x, y and the value
The name of the column to use from .data as x
The name of the column to use from .data as y
The name of the column to use from .data to use as the value
x <- correlate(mtcars) xs <- stretch(x) retract(xs)
Run the code above in your browser using DataLab