{"action":"closed","issue":{"url":"https://api.github.com/repos/Rdatatable/data.table/issues/749","repository_url":"https://api.github.com/repos/Rdatatable/data.table","labels_url":"https://api.github.com/repos/Rdatatable/data.table/issues/749/labels{/name}","comments_url":"https://api.github.com/repos/Rdatatable/data.table/issues/749/comments","events_url":"https://api.github.com/repos/Rdatatable/data.table/issues/749/events","html_url":"https://github.com/Rdatatable/data.table/issues/749","id":39251574,"number":749,"title":"setDT should have 'key' argument","user":{"login":"arunsrinivasan","id":3102045,"avatar_url":"https://avatars.githubusercontent.com/u/3102045?v=3","gravatar_id":"","url":"https://api.github.com/users/arunsrinivasan","html_url":"https://github.com/arunsrinivasan","followers_url":"https://api.github.com/users/arunsrinivasan/followers","following_url":"https://api.github.com/users/arunsrinivasan/following{/other_user}","gists_url":"https://api.github.com/users/arunsrinivasan/gists{/gist_id}","starred_url":"https://api.github.com/users/arunsrinivasan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arunsrinivasan/subscriptions","organizations_url":"https://api.github.com/users/arunsrinivasan/orgs","repos_url":"https://api.github.com/users/arunsrinivasan/repos","events_url":"https://api.github.com/users/arunsrinivasan/events{/privacy}","received_events_url":"https://api.github.com/users/arunsrinivasan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Rdatatable/data.table/labels/duplicate","name":"duplicate","color":"cccccc"},{"url":"https://api.github.com/repos/Rdatatable/data.table/labels/feature%20request","name":"feature request","color":"009800"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2014-08-01T00:15:55Z","updated_at":"2016-07-22T11:33:43Z","closed_at":"2016-07-22T11:33:43Z","body":"Currently after getting a `data.table` from `data.frame` with `setDT`, if we've to set key, then:\r\n\r\n```R\r\nsetkey(setDT(dat), ...)\r\n```\r\n\r\nIt'd be much more convenient to do:\r\n\r\n```R\r\nsetDT(dat, key=c(...))\r\n```\r\n"}}
{"actor":{"display_login":"arunsrinivasan"}}