Hello everyone,
I am having trouble in using quantile function within lapply function. I have a list of data frames and each data frame has a variable name TOTAL_INCOME. So I want to apply quantile function based on the TOTAL_INCOME variable on each data frame. I am running following code but id does not work.
#All_income is a list of data frame having multiple common variables.
#TOTAL_INCOME is a common variable in all the dataframe
quant_income= lapply(All_incom,quantile,All_incom[[]]$TOTAL_INCOME)
So how can I make it work?