{"action":"opened","issue":{"url":"https://api.github.com/repos/Rdatatable/data.table/issues/1893","repository_url":"https://api.github.com/repos/Rdatatable/data.table","labels_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1893/labels{/name}","comments_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1893/comments","events_url":"https://api.github.com/repos/Rdatatable/data.table/issues/1893/events","html_url":"https://github.com/Rdatatable/data.table/issues/1893","id":185932603,"number":1893,"title":"set() outcomes differ for no apparent reasons","user":{"login":"hannes101","id":11256578,"avatar_url":"https://avatars.githubusercontent.com/u/11256578?v=3","gravatar_id":"","url":"https://api.github.com/users/hannes101","html_url":"https://github.com/hannes101","followers_url":"https://api.github.com/users/hannes101/followers","following_url":"https://api.github.com/users/hannes101/following{/other_user}","gists_url":"https://api.github.com/users/hannes101/gists{/gist_id}","starred_url":"https://api.github.com/users/hannes101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannes101/subscriptions","organizations_url":"https://api.github.com/users/hannes101/orgs","repos_url":"https://api.github.com/users/hannes101/repos","events_url":"https://api.github.com/users/hannes101/events{/privacy}","received_events_url":"https://api.github.com/users/hannes101/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-28T14:09:43Z","updated_at":"2016-10-28T14:09:43Z","closed_at":null,"body":"I observed the issue, that for no apparent reason there's a need to differently define the i clause of a set call. Basically on one data.table it is sufficient to use:\r\nset(dt1, i = which(OilWellID == 3), j = \"Invest.Period\", value = 756)\r\nand on another one it's necessary to add \r\nset(dt , i = which(dt[[\"Abandon.Period\"]] == 2270L), j = 2L, value = 1L\r\nI just wanted to know what's the reason for this. Is it related to the data.type of the column or based on something else. \r\nFor more information and reproducible examples, please see:\r\nhttps://stackoverflow.com/questions/40304286/setting-a-value-in-a-data-table-with-set-debugging\r\ndata.table version is 1.9.6 \r\nR 3.3.0\r\nThanks for data.table!"}}
{"actor":{"display_login":"hannes101"}}