{"id":550,"date":"2010-01-12T01:09:05","date_gmt":"2010-01-12T05:09:05","guid":{"rendered":"http:\/\/scott.sherrillmix.com\/blog\/?p=550"},"modified":"2010-01-12T01:09:51","modified_gmt":"2010-01-12T05:09:51","slug":"handy-apply-based-r-progress-bars","status":"publish","type":"post","link":"http:\/\/scott.sherrillmix.com\/blog\/programmer\/handy-apply-based-r-progress-bars\/","title":{"rendered":"Handy Apply-based R Progress Bars"},"content":{"rendered":"

In a funny congruence with my post on R progress bars<\/a>, Mark Heckmann just posted about some wrappers for the apply functions in R<\/a>. He wrote up some functions that imitate sapply<\/code>, lapply<\/code> and apply<\/code> but automatically add a progress bar so you can monitor the progress. They work very nice since you can just substitute his apply_pb<\/code>‘s in place of R’s standard apply<\/code>‘s. He says it’s a bit of a performance drag but after testing a bit it looks like they really shouldn’t add much overhead at all if there’s any major calculations inside the loop. Very handy.<\/p>","protected":false},"excerpt":{"rendered":"In a funny congruence with my post on R progress bars, Mark Heckmann just posted about some wrappers for the apply functions in R. He wrote up some functions that imitate sapply, lapply and apply but automatically add a progress bar so you can monitor the progress. They work very nice since you can just […]","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,417],"tags":[524,527,526,551,523,317,525],"_links":{"self":[{"href":"http:\/\/scott.sherrillmix.com\/blog\/wp-json\/wp\/v2\/posts\/550"}],"collection":[{"href":"http:\/\/scott.sherrillmix.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/scott.sherrillmix.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/scott.sherrillmix.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/scott.sherrillmix.com\/blog\/wp-json\/wp\/v2\/comments?post=550"}],"version-history":[{"count":5,"href":"http:\/\/scott.sherrillmix.com\/blog\/wp-json\/wp\/v2\/posts\/550\/revisions"}],"predecessor-version":[{"id":556,"href":"http:\/\/scott.sherrillmix.com\/blog\/wp-json\/wp\/v2\/posts\/550\/revisions\/556"}],"wp:attachment":[{"href":"http:\/\/scott.sherrillmix.com\/blog\/wp-json\/wp\/v2\/media?parent=550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/scott.sherrillmix.com\/blog\/wp-json\/wp\/v2\/categories?post=550"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/scott.sherrillmix.com\/blog\/wp-json\/wp\/v2\/tags?post=550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}