{"action":"created","comment":{"url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/pulls/comments/59791038","id":59791038,"diff_hunk":"@@ -165,5 +299,29 @@ cheese <- Quandl(\"USDANASS/NASS_CHEESEPRODUCTIONMEASUREDINLB\") %>%\n   tbl_df()\n milk <-  Quandl(\"USDANASS/NASS_MILKPRODUCTIONMEASUREDINLB\") %>% \n   tbl_df()\n+\n+cheese <- mutate(cheese, type = \"cheese\")\n+milk <- mutate(milk, type = \"milk\")\n+\n+both <- rbind(cheese, milk)\n+\n+ggplot(both, aes(x = Date, y = Value, color = type)) + geom_line()\n+```\n+> Cheese doesn't really seem to depend on the price of milk. This is surprising, obviously, because milk makes cheese. That said, it takes a few years to make cheese, and so cheese companies always have a lot of cheese that's aging in storage. This probably helps reduce the effect of milk prices, since a spike can be distributed across a few years. \n+\n+```{r, echo=FALSE, fig.width=12, fig.height=6}\n+\n+milk <-  Quandl(\"USDANASS/NASS_MILKPRODUCTIONMEASUREDINLB\") %>% \n+  tbl_df()\n+\n+milk <- mutate(milk, Value = Value/50)\n+\n+cheese <- mutate(cheese, type = \"cheese\")\n+milk <- mutate(milk, type = \"milk\")\n+\n+both <- rbind(cheese, milk)\n+\n+ggplot(both, aes(x = Date, y = Value, color = type)) + geom_line()\n ```\n \n+> The lack of movement in the cheese prices is partially just a funciton of the scale of each. Cheese is a lot cheaper than milk (at least, in the way this is reported. Presumably that's not true pound-for-point or no one would make cheese). When they're on the same scale (I just divided milk prices by 50), you can see that they do look somewhat similar, especially from 1940 to the mid 60s. It's harder to tell trends when they both start increasing, but some are still noticable, like the spike in year 2000, or in the mid 80s.","path":"HW-3.Rmd","position":266,"original_position":266,"commit_id":"1bed6ac9fb75cb1e6fac484cd8ca4de1b66c940b","original_commit_id":"1bed6ac9fb75cb1e6fac484cd8ca4de1b66c940b","user":{"login":"rudeboybert","id":4574203,"avatar_url":"https://avatars.githubusercontent.com/u/4574203?v=3","gravatar_id":"","url":"https://api.github.com/users/rudeboybert","html_url":"https://github.com/rudeboybert","followers_url":"https://api.github.com/users/rudeboybert/followers","following_url":"https://api.github.com/users/rudeboybert/following{/other_user}","gists_url":"https://api.github.com/users/rudeboybert/gists{/gist_id}","starred_url":"https://api.github.com/users/rudeboybert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudeboybert/subscriptions","organizations_url":"https://api.github.com/users/rudeboybert/orgs","repos_url":"https://api.github.com/users/rudeboybert/repos","events_url":"https://api.github.com/users/rudeboybert/events{/privacy}","received_events_url":"https://api.github.com/users/rudeboybert/received_events","type":"User","site_admin":false},"body":"You have a good sense for data my friend.","created_at":"2016-04-14T21:00:31Z","updated_at":"2016-04-14T21:00:31Z","html_url":"https://github.com/Middlebury-Data-Science/HW-3/pull/7#discussion_r59791038","pull_request_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/pulls/comments/59791038"},"html":{"href":"https://github.com/Middlebury-Data-Science/HW-3/pull/7#discussion_r59791038"},"pull_request":{"href":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/pulls/7","id":66337026,"html_url":"https://github.com/Middlebury-Data-Science/HW-3/pull/7","diff_url":"https://github.com/Middlebury-Data-Science/HW-3/pull/7.diff","patch_url":"https://github.com/Middlebury-Data-Science/HW-3/pull/7.patch","issue_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/issues/7","number":7,"state":"open","locked":false,"title":"Carter Merenstein","user":{"login":"cmerenstein","id":7004413,"avatar_url":"https://avatars.githubusercontent.com/u/7004413?v=3","gravatar_id":"","url":"https://api.github.com/users/cmerenstein","html_url":"https://github.com/cmerenstein","followers_url":"https://api.github.com/users/cmerenstein/followers","following_url":"https://api.github.com/users/cmerenstein/following{/other_user}","gists_url":"https://api.github.com/users/cmerenstein/gists{/gist_id}","starred_url":"https://api.github.com/users/cmerenstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmerenstein/subscriptions","organizations_url":"https://api.github.com/users/cmerenstein/orgs","repos_url":"https://api.github.com/users/cmerenstein/repos","events_url":"https://api.github.com/users/cmerenstein/events{/privacy}","received_events_url":"https://api.github.com/users/cmerenstein/received_events","type":"User","site_admin":false},"body":"Only the first 3 are done, sorry about that.","created_at":"2016-04-13T15:03:52Z","updated_at":"2016-04-14T21:00:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93666ddfd7c5e02a165fc24e3b0c1dda85f74825","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/issues/7/comments","statuses_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/statuses/1bed6ac9fb75cb1e6fac484cd8ca4de1b66c940b","head":{"label":"cmerenstein:master","ref":"master","sha":"1bed6ac9fb75cb1e6fac484cd8ca4de1b66c940b","user":{"login":"cmerenstein","id":7004413,"avatar_url":"https://avatars.githubusercontent.com/u/7004413?v=3","gravatar_id":"","url":"https://api.github.com/users/cmerenstein","html_url":"https://github.com/cmerenstein","followers_url":"https://api.github.com/users/cmerenstein/followers","following_url":"https://api.github.com/users/cmerenstein/following{/other_user}","gists_url":"https://api.github.com/users/cmerenstein/gists{/gist_id}","starred_url":"https://api.github.com/users/cmerenstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmerenstein/subscriptions","organizations_url":"https://api.github.com/users/cmerenstein/orgs","repos_url":"https://api.github.com/users/cmerenstein/repos","events_url":"https://api.github.com/users/cmerenstein/events{/privacy}","received_events_url":"https://api.github.com/users/cmerenstein/received_events","type":"User","site_admin":false},"repo":{"id":54571536,"name":"HW-3","full_name":"cmerenstein/HW-3","owner":{"login":"cmerenstein","id":7004413,"avatar_url":"https://avatars.githubusercontent.com/u/7004413?v=3","gravatar_id":"","url":"https://api.github.com/users/cmerenstein","html_url":"https://github.com/cmerenstein","followers_url":"https://api.github.com/users/cmerenstein/followers","following_url":"https://api.github.com/users/cmerenstein/following{/other_user}","gists_url":"https://api.github.com/users/cmerenstein/gists{/gist_id}","starred_url":"https://api.github.com/users/cmerenstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmerenstein/subscriptions","organizations_url":"https://api.github.com/users/cmerenstein/orgs","repos_url":"https://api.github.com/users/cmerenstein/repos","events_url":"https://api.github.com/users/cmerenstein/events{/privacy}","received_events_url":"https://api.github.com/users/cmerenstein/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cmerenstein/HW-3","description":"Logistic Regression and Dates & Times","fork":true,"url":"https://api.github.com/repos/cmerenstein/HW-3","forks_url":"https://api.github.com/repos/cmerenstein/HW-3/forks","keys_url":"https://api.github.com/repos/cmerenstein/HW-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cmerenstein/HW-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cmerenstein/HW-3/teams","hooks_url":"https://api.github.com/repos/cmerenstein/HW-3/hooks","issue_events_url":"https://api.github.com/repos/cmerenstein/HW-3/issues/events{/number}","events_url":"https://api.github.com/repos/cmerenstein/HW-3/events","assignees_url":"https://api.github.com/repos/cmerenstein/HW-3/assignees{/user}","branches_url":"https://api.github.com/repos/cmerenstein/HW-3/branches{/branch}","tags_url":"https://api.github.com/repos/cmerenstein/HW-3/tags","blobs_url":"https://api.github.com/repos/cmerenstein/HW-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cmerenstein/HW-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cmerenstein/HW-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/cmerenstein/HW-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cmerenstein/HW-3/statuses/{sha}","languages_url":"https://api.github.com/repos/cmerenstein/HW-3/languages","stargazers_url":"https://api.github.com/repos/cmerenstein/HW-3/stargazers","contributors_url":"https://api.github.com/repos/cmerenstein/HW-3/contributors","subscribers_url":"https://api.github.com/repos/cmerenstein/HW-3/subscribers","subscription_url":"https://api.github.com/repos/cmerenstein/HW-3/subscription","commits_url":"https://api.github.com/repos/cmerenstein/HW-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/cmerenstein/HW-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/cmerenstein/HW-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/cmerenstein/HW-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/cmerenstein/HW-3/contents/{+path}","compare_url":"https://api.github.com/repos/cmerenstein/HW-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cmerenstein/HW-3/merges","archive_url":"https://api.github.com/repos/cmerenstein/HW-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cmerenstein/HW-3/downloads","issues_url":"https://api.github.com/repos/cmerenstein/HW-3/issues{/number}","pulls_url":"https://api.github.com/repos/cmerenstein/HW-3/pulls{/number}","milestones_url":"https://api.github.com/repos/cmerenstein/HW-3/milestones{/number}","notifications_url":"https://api.github.com/repos/cmerenstein/HW-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cmerenstein/HW-3/labels{/name}","releases_url":"https://api.github.com/repos/cmerenstein/HW-3/releases{/id}","deployments_url":"https://api.github.com/repos/cmerenstein/HW-3/deployments","created_at":"2016-03-23T15:34:11Z","updated_at":"2016-03-23T15:07:41Z","pushed_at":"2016-04-14T02:53:07Z","git_url":"git://github.com/cmerenstein/HW-3.git","ssh_url":"git@github.com:cmerenstein/HW-3.git","clone_url":"https://github.com/cmerenstein/HW-3.git","svn_url":"https://github.com/cmerenstein/HW-3","homepage":"","size":6048,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Middlebury-Data-Science:master","ref":"master","sha":"f5936c0f51ab6261400c313a5544e05728b61e89","user":{"login":"Middlebury-Data-Science","id":15661362,"avatar_url":"https://avatars.githubusercontent.com/u/15661362?v=3","gravatar_id":"","url":"https://api.github.com/users/Middlebury-Data-Science","html_url":"https://github.com/Middlebury-Data-Science","followers_url":"https://api.github.com/users/Middlebury-Data-Science/followers","following_url":"https://api.github.com/users/Middlebury-Data-Science/following{/other_user}","gists_url":"https://api.github.com/users/Middlebury-Data-Science/gists{/gist_id}","starred_url":"https://api.github.com/users/Middlebury-Data-Science/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Middlebury-Data-Science/subscriptions","organizations_url":"https://api.github.com/users/Middlebury-Data-Science/orgs","repos_url":"https://api.github.com/users/Middlebury-Data-Science/repos","events_url":"https://api.github.com/users/Middlebury-Data-Science/events{/privacy}","received_events_url":"https://api.github.com/users/Middlebury-Data-Science/received_events","type":"Organization","site_admin":false},"repo":{"id":54347571,"name":"HW-3","full_name":"Middlebury-Data-Science/HW-3","owner":{"login":"Middlebury-Data-Science","id":15661362,"avatar_url":"https://avatars.githubusercontent.com/u/15661362?v=3","gravatar_id":"","url":"https://api.github.com/users/Middlebury-Data-Science","html_url":"https://github.com/Middlebury-Data-Science","followers_url":"https://api.github.com/users/Middlebury-Data-Science/followers","following_url":"https://api.github.com/users/Middlebury-Data-Science/following{/other_user}","gists_url":"https://api.github.com/users/Middlebury-Data-Science/gists{/gist_id}","starred_url":"https://api.github.com/users/Middlebury-Data-Science/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Middlebury-Data-Science/subscriptions","organizations_url":"https://api.github.com/users/Middlebury-Data-Science/orgs","repos_url":"https://api.github.com/users/Middlebury-Data-Science/repos","events_url":"https://api.github.com/users/Middlebury-Data-Science/events{/privacy}","received_events_url":"https://api.github.com/users/Middlebury-Data-Science/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Middlebury-Data-Science/HW-3","description":"Logistic Regression and Dates & Times","fork":false,"url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3","forks_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/forks","keys_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/teams","hooks_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/hooks","issue_events_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/issues/events{/number}","events_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/events","assignees_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/assignees{/user}","branches_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/branches{/branch}","tags_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/tags","blobs_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/git/refs{/sha}","trees_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/statuses/{sha}","languages_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/languages","stargazers_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/stargazers","contributors_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/contributors","subscribers_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/subscribers","subscription_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/subscription","commits_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/commits{/sha}","git_commits_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/git/commits{/sha}","comments_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/comments{/number}","issue_comment_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/issues/comments{/number}","contents_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/contents/{+path}","compare_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/merges","archive_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/downloads","issues_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/issues{/number}","pulls_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/pulls{/number}","milestones_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/milestones{/number}","notifications_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/labels{/name}","releases_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/releases{/id}","deployments_url":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/deployments","created_at":"2016-03-21T00:12:02Z","updated_at":"2016-03-23T15:07:41Z","pushed_at":"2016-04-14T15:45:02Z","git_url":"git://github.com/Middlebury-Data-Science/HW-3.git","ssh_url":"git@github.com:Middlebury-Data-Science/HW-3.git","clone_url":"https://github.com/Middlebury-Data-Science/HW-3.git","svn_url":"https://github.com/Middlebury-Data-Science/HW-3","homepage":"","size":6039,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":11,"forks":14,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/pulls/7"},"html":{"href":"https://github.com/Middlebury-Data-Science/HW-3/pull/7"},"issue":{"href":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/issues/7"},"comments":{"href":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Middlebury-Data-Science/HW-3/statuses/1bed6ac9fb75cb1e6fac484cd8ca4de1b66c940b"}}}}