{"action":"opened","issue":{"url":"https://api.github.com/repos/kgilds/Get-REAL-/issues/4","labels_url":"https://api.github.com/repos/kgilds/Get-REAL-/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/kgilds/Get-REAL-/issues/4/comments","events_url":"https://api.github.com/repos/kgilds/Get-REAL-/issues/4/events","html_url":"https://github.com/kgilds/Get-REAL-/issues/4","id":56935588,"number":4,"title":"True duplicate girlCodes","user":{"login":"kgilds","id":4209605,"avatar_url":"https://avatars.githubusercontent.com/u/4209605?v=3","gravatar_id":"","url":"https://api.github.com/users/kgilds","html_url":"https://github.com/kgilds","followers_url":"https://api.github.com/users/kgilds/followers","following_url":"https://api.github.com/users/kgilds/following{/other_user}","gists_url":"https://api.github.com/users/kgilds/gists{/gist_id}","starred_url":"https://api.github.com/users/kgilds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kgilds/subscriptions","organizations_url":"https://api.github.com/users/kgilds/orgs","repos_url":"https://api.github.com/users/kgilds/repos","events_url":"https://api.github.com/users/kgilds/events{/privacy}","received_events_url":"https://api.github.com/users/kgilds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-08T02:26:26Z","updated_at":"2015-02-08T02:26:26Z","closed_at":null,"body":"This will extract the rows which appear only once (assuming your data frame is named df):\r\n\r\ndf[!(duplicated(df) | duplicated(df, fromLast = TRUE)), ]\r\nHow it works: The function duplicated tests whether a line appears at least for the second time starting at line one. If the argument fromLast = TRUE is used, the function starts at the last line.\r\n\r\nBoths boolean results are combined with | (logical 'or') into a new vector which indicates all lines appearing more than once. The result of this is negated using ! thereby creating a boolean vector indicating lines appearing only once.\r\n\r\ndf[!(duplicated(df) | duplicated(df, fromLast = TRUE)), ]"}}