The subset has many values different rows but for my purpose, I only use one
Current Code
male <- subset(dropped, SEXP == 2)
female <- subset(dropped, SEXP == 1)
incomeMale <- subset(male, TOTINCP > 0)
#a vector called percentIncome of all the values in the row TOTINCP from incomeMale
quantile(percentIncome, 0.05,0.10,0.95,0.90)
I want a vector of all the values in TOTINCP so that I can use the quantiles function to get the percentages of the bottom 5%, 10% and top 5%, 10% . I tried using nrows() but it doesn't take in the subset of incomeMale so it would just be giving me all the values in TOTINCP.