[R] R code for overlapping variables -- count

Duncan Murdoch murdoch@dunc@n @end|ng |rom gm@||@com
Sun Jun 2 11:55:28 CEST 2024


On 2024-06-01 6:31 p.m., Shadee Ashtari wrote:
> Hi!
> 
> I am trying to find the code for how to get counts for intersectional
> variables. For example, I have three unique categorical variables --
> "Female," "USA," and "MidIncome" -- and I'm trying to see how many people I
> have at the intersection of the three.

It depends on how those are stored.  Could you put together a little 
dataframe containing sample data, run `dput()` on it, and post the 
result here?

Duncan Murdoch



More information about the R-help mailing list