I know this has been discussed already, but can't find a solution that works for me. I have several binary (0/1) variables named "indic___1" to "indic ...
I know this has been discussed already, but can't find a solution that works for me. I have several binary (0/1) variables named "indic___1" to "indic ...
Need your help, to solve strugle with list of lists filtering, merging and summarizing. My input params: Nested list structure [p0-n, p1-n, p2-n, ...
Need help with the summarise and group function on the dataset below The goal is to get a sum of all non blanks against the column with header "name" ...
I'm trying to produce a weighted sum per factor level. I have four columns of data: If only column 2 is filled, the value gets the full amount o ...
I have a dataframe with a numeric variable ("numeric") and several factor variables (factors 0 and 1 (FALSE, TRUE) or 0 to 4 (states in a pathology)). ...
I would like to be able to calculate the average "IntakeEnergy" by location (latitude) for the following dataset. The problem that I think I am having ...
I am trying to reshape data using pandas and have been having a hard time getting it into the right format. Roughly, the data look like this*: I wo ...
I am trying to make a table that shows N (number of observations), percent frequency (of answers > 0), and the lower and upper confidence intervals ...
I'm looking for a faster way to calculate a group mean with multiple grouping variables while excluding own group values. A thought experiment would b ...
tibble::tibble( col1 = c("A","","C","",""), col2 = c("string1 part 1","string1 part 2", "string2 part 1", "string2 part 2", ...
I have a data.frame of (sub)string positions within a larger string. The data contains the start of a (sub)string and it's length. The end position of ...
I have a data frame. The snippet is: I need to group df1 by y and sum over x but accounting for order of y. I.e I need to create new group after ea ...
I have a table that looks like this: (The 'Day' column is not involved in my skew & kurtosis calculation, it is just in my table) I would like ...
With the package qwraps2 we can create nice summary tables in HTML and Latex. Grouped data.frames with one group are supported as well but what about ...
I want to use dplyr::summarise_all() and weighted.mean to calculate the weighted averages of many columns for each group. I tried to directly use an ...
I'm creating a bunch of basic status reports and one of things I'm finding tedious is adding a total row to all my tables. I'm currently using the Tid ...
I am looking to summarize a customer transactional dataframe to a single row per customer using dplyr. For continuous variables this is simple - use s ...
Say I have a dataset like this: I.e., For each id, how would I get the max repetition of the values of foo I.e., For example, id 2 has a max ...
I have a dataframe with a column containing ids and other column containing numbers: You may note that each Id has their correponding series of con ...
Building off of Kara Woo's https://stackoverflow.com/a/26555424/9350837 answer, I'm looking to sort my grouped df by the mean of respective groups sum ...