plyr
ddply and spaces in quoted variables
Is it possible to use spaces in ddply? I\'m using data from a spreads开发者_Go百科heet with a lot of spaces in column names and i would like to keep those names because later on I want to export this[详细]
2023-03-17 15:35 分类:问答How can I count the current people in a group from a list of start and end dates in R
Or rather, How can I do it better than I have fudged. I have a dataframe with names and start and end dates in a group. I want to produce a dataframe with the number of people in the group over time.[详细]
2023-03-16 22:43 分类:问答adding text to ggplot geom_jitter points that match a condition
How can I add text to points rendered with geom_jittered to label them? geom_text will not work because I don\'t know the coordinates of the jittered dots. Could you capture the position of the jitter[详细]
2023-03-16 15:21 分类:问答aggregate by ID and find min() and max() of time
I got a transaction database which looks like this: AccountID PaymentDate PaymentAmount 8132020-02-091.00[详细]
2023-03-14 09:37 分类:问答Aggregate a dataframe on a given column and display another column
I have a dataframe in R of the following form: > head(data) Group Score Info 111a 212b 313c 424d 523e 621f[详细]
2023-03-11 20:43 分类:问答How does plyr merge two columns of different data.frames with same names but different values
While merging 3 data.frames using p开发者_运维知识库lyr library, I encounter some values with the same name but with different values each in different data.frames.[详细]
2023-03-09 04:05 分类:问答zipping lists in R
As a guideline I prefer apply functions on elements of a list using lapply or *ply (from plyr) rather than explicitly iterating through them. However, this works well when I have to process one list a[详细]
2023-03-08 20:54 分类:问答Subsetting a data frame with top-n rows for each group, and ordered by a variable
I would like to subset a data frame for n rows, which are grouped by a variable and are sorted descending by another variable. This would be clear with an example:[详细]
2023-03-07 03:28 分类:问答Loops to create new variables in ddply
I am using ddply to aggregate and summarize data frame variables, and I am interested in looping through my data frame\'s list to create the new variables.[详细]
2023-03-02 19:24 分类:问答R Plyr - Ordering results from DDPLY?
Does anyone know a slick way to order the results coming out of a ddply summarise operation? This is what I\'m doing to get the output ordered by descending depth.[详细]
2023-03-02 07:41 分类:问答