Skip to content

Instantly share code, notes, and snippets.

@dchentech
Created April 15, 2013 01:17
Show Gist options
  • Save dchentech/5385013 to your computer and use it in GitHub Desktop.
Save dchentech/5385013 to your computer and use it in GitHub Desktop.
《Exploring Everyday Things with R and Ruby》学习记录
height <- c(58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72) weight <- c(115, 117, 120, 123, 126, 129, 132, 135, 139, 142, 146, 150, 154,
159, 164) print(mean(height))
print(sd(weight)) print(cor(weight, height)) plot(weight, height)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment