{"comment":{"url":"https://api.github.com/repos/annakat/spectrolab/comments/20361256","html_url":"https://github.com/annakat/spectrolab/commit/87446402eb58c1f593da8a88ff0b556f245f4140#commitcomment-20361256","id":20361256,"user":{"login":"meireles","id":1588264,"avatar_url":"https://avatars.githubusercontent.com/u/1588264?v=3","gravatar_id":"","url":"https://api.github.com/users/meireles","html_url":"https://github.com/meireles","followers_url":"https://api.github.com/users/meireles/followers","following_url":"https://api.github.com/users/meireles/following{/other_user}","gists_url":"https://api.github.com/users/meireles/gists{/gist_id}","starred_url":"https://api.github.com/users/meireles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meireles/subscriptions","organizations_url":"https://api.github.com/users/meireles/orgs","repos_url":"https://api.github.com/users/meireles/repos","events_url":"https://api.github.com/users/meireles/events{/privacy}","received_events_url":"https://api.github.com/users/meireles/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":null,"commit_id":"87446402eb58c1f593da8a88ff0b556f245f4140","created_at":"2017-01-04T16:36:18Z","updated_at":"2017-01-04T16:36:18Z","body":"@annakat Can we consider merging all these \"excl\" functions into one function with reasonable defaults?\r\n\r\nAnyways, It would probably be best to use the logical operators that work on spectra directly, so you can avoid doing all the internal transformations you are doing. here is an example:\r\n\r\n    library(spectrolab)\r\n    s0 = as.spectra(spec_matrix_example)\r\n    s1 = s0[ which( s0[ , 700] > 0.115) ,  ] .   ## meaning. keep the samples where band 700 > 0.115\r\n"}}
{"actor":{"display_login":"meireles"}}