Transforming variables
When variables have skewed distributions, they often require a transformation in order to form a linear relationship with another variable so that correlation can be computed. In this exercise, you'll perform a transformation yourself.
Both dplyr and ggplot2 libraries are loaded and world_happiness is available.
Bu egzersiz
Introduction to Statistics in R
kursunun bir parçasıdırUygulamalı interaktif egzersiz
Bu örnek kodu tamamlayarak bu egzersizi bitirin.
# Scatterplot of happiness_score vs. gdp_per_cap
___
# Calculate correlation
___