I am trying to get quantiles from my data- Lets say (0.25, 0.5 and 0.75 ) for a variable . I could figure out how to do it from a dataframe
Quantile <- mydataframe %>% summarize(quantile(variable_name,c(.25,0.5,0.75)))
However instead of a dataframe, when I try to get the quantiles from a table (after connecting to greenplum) it doesn't seem to work .
Any ideas on how to implement this? My guess is the translation to PostgreSQL query for quantile function is not available .