{"action":"created","issue":{"url":"https://api.github.com/repos/IALSA/IALSA-2015-Portland/issues/122","repository_url":"https://api.github.com/repos/IALSA/IALSA-2015-Portland","labels_url":"https://api.github.com/repos/IALSA/IALSA-2015-Portland/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/IALSA/IALSA-2015-Portland/issues/122/comments","events_url":"https://api.github.com/repos/IALSA/IALSA-2015-Portland/issues/122/events","html_url":"https://github.com/IALSA/IALSA-2015-Portland/issues/122","id":142511912,"number":122,"title":"Debugging data.table::dcast() ","user":{"login":"andkov","id":2608073,"avatar_url":"https://avatars.githubusercontent.com/u/2608073?v=3","gravatar_id":"","url":"https://api.github.com/users/andkov","html_url":"https://github.com/andkov","followers_url":"https://api.github.com/users/andkov/followers","following_url":"https://api.github.com/users/andkov/following{/other_user}","gists_url":"https://api.github.com/users/andkov/gists{/gist_id}","starred_url":"https://api.github.com/users/andkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andkov/subscriptions","organizations_url":"https://api.github.com/users/andkov/orgs","repos_url":"https://api.github.com/users/andkov/repos","events_url":"https://api.github.com/users/andkov/events{/privacy}","received_events_url":"https://api.github.com/users/andkov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IALSA/IALSA-2015-Portland/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/IALSA/IALSA-2015-Portland/labels/TECH","name":"TECH","color":"66c2a5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-22T00:37:43Z","updated_at":"2016-03-22T02:13:36Z","closed_at":null,"body":"Something in the data values prevent the script `./sandbox/inspect-extracted-results/inspect-instructed-raw.R`\r\n```\r\n> ds <- dlong[1:1000,]\r\n> dwide <- data.table::dcast(data.table::setDT(ds),\r\n+   study_name + model_number + subgroup + model_type +\r\n+     process_a + process_b + index ~ variable, value.var = \"value\")\r\n```\r\nhowever,\r\n```\r\n> ds <- dlong[1:2000,]\r\n> dwide <- data.table::dcast(data.table::setDT(ds),\r\n+   study_name + model_number + subgroup + model_type +\r\n+     process_a + process_b + index ~ variable, value.var = \"value\")\r\nAggregate function missing, defaulting to 'length'\r\n```\r\n(see lines 105-109). What might be the matter?\r\n\r\nI'm not devoted to data.table casting, i just needed something to which I can pass a vector. Any hints what might be wrong? It is [this file](https://github.com/IALSA/IALSA-2015-Portland/blob/master/data/shared/parsed-results-raw.csv) that i'm trying to widen. "},"comment":{"url":"https://api.github.com/repos/IALSA/IALSA-2015-Portland/issues/comments/199586225","html_url":"https://github.com/IALSA/IALSA-2015-Portland/issues/122#issuecomment-199586225","issue_url":"https://api.github.com/repos/IALSA/IALSA-2015-Portland/issues/122","id":199586225,"user":{"login":"wibeasley","id":1372890,"avatar_url":"https://avatars.githubusercontent.com/u/1372890?v=3","gravatar_id":"","url":"https://api.github.com/users/wibeasley","html_url":"https://github.com/wibeasley","followers_url":"https://api.github.com/users/wibeasley/followers","following_url":"https://api.github.com/users/wibeasley/following{/other_user}","gists_url":"https://api.github.com/users/wibeasley/gists{/gist_id}","starred_url":"https://api.github.com/users/wibeasley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wibeasley/subscriptions","organizations_url":"https://api.github.com/users/wibeasley/orgs","repos_url":"https://api.github.com/users/wibeasley/repos","events_url":"https://api.github.com/users/wibeasley/events{/privacy}","received_events_url":"https://api.github.com/users/wibeasley/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T02:13:36Z","updated_at":"2016-03-22T02:13:36Z","body":"Can you paste an abbreviated example of what you'd like the output to be, and what it is now?  The message by itself (ie, \"Aggregate function missing, defaulting to 'length'\") isn't necessarily bad."}}