{"id":25578,"date":"2023-07-28T16:15:25","date_gmt":"2023-07-28T16:15:25","guid":{"rendered":"https:\/\/www.goodacademic.com\/blog\/questions\/r-studio-%ce%b9-need-the-optimization-of-intersect-function-for-2-vectors-in-terms-of-speed-and-resources\/"},"modified":"2023-07-28T16:15:25","modified_gmt":"2023-07-28T16:15:25","slug":"r-studio-%ce%b9-need-the-optimization-of-intersect-function-for-2-vectors-in-terms-of-speed-and-resources","status":"publish","type":"questions","link":"https:\/\/www.goodacademic.com\/blog\/questions\/r-studio-%ce%b9-need-the-optimization-of-intersect-function-for-2-vectors-in-terms-of-speed-and-resources\/","title":{"rendered":"R studio : \u03b9 need the optimization of intersect function for 2 vectors in terms of speed and resources"},"content":{"rendered":"<p>.<\/p>\n<p><span style=\"cursor: auto; color: inherit;\">I<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">need<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">to<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">improve<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">5<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">lines<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">of<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">R<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">code<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">The<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">code<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">finds<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">common<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">vector<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">elements<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">with<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">intersect<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">but<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">it<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">curls<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">a<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">lot<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">of<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">resources<\/span><span style=\"cursor: auto; color: inherit;\"> (<\/span><span style=\"cursor: auto; color: inherit;\">RAM<\/span><span style=\"cursor: auto; color: inherit;\">) <\/span><span style=\"cursor: auto; color: inherit;\">I<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">need<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">its<\/span><span style=\"cursor: auto; color: inherit;\"> <\/span><span style=\"cursor: auto; color: inherit;\">optimization<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>. I need to improve 5 lines of R code The code finds common vector elements with intersect but it curls a lot of resources (RAM) I need its optimization<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"disciplines":[732],"paper_types":[],"tagged":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/25578"}],"collection":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions"}],"about":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/types\/questions"}],"author":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/comments?post=25578"}],"version-history":[{"count":0,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/25578\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/media?parent=25578"}],"wp:term":[{"taxonomy":"disciplines","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/disciplines?post=25578"},{"taxonomy":"paper_types","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/paper_types?post=25578"},{"taxonomy":"tagged","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/tagged?post=25578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}