Hi there,
I’ve been beating my head on this for a bit, and I’m coming up empty. Based on another answer I found here (and after realizing there’s no R equivalent of the apply functions or dplyr rowwise functions), I tried something like this:
f(a, b, c, d, e, f) = Statistics.median(a, b, c, d, e, f)
And then tried to execute it like:
f.(reddit_df[:subdomain_all_freq_comment_count], reddit_df[:subdomain_all_freq_comment_query_count], reddit_df[:subdomain_all_freq_submission_count], reddit_df[:subdomain_all_freq_submission_query_count], reddit_df[:subdomain_all_freq_active_user_count], reddit_df[:subdomain_all_freq_subscriber_count])
Which yields “ERROR: MethodError: no method matching median(::Float64, ::Float64, ::Float64, ::Float64, ::Missing, ::Missing)”
I assume it’s due to the presence of the missings. But when I try to add a skipmissings in there, pretty much anywhere, it doesn’t work either. Any tips here on how to do row-wise operations over a dataframe?
Thank you!