Hi, I am attempting to filter rows of my dataframe 'AGE' based on a range of values of the variable 'SF35PCS_HLEQ1', and then find the mean of the remaining 'AGE2' variable rows. However, I keep getting the same mean value output despite changing the range of values. How can I rectify this issue so that the range limitation command is effected?
AGE <- Full_data %>%
select(AGE2, SF36PCS_HLEQ1) %>%
filter(!is.na(AGE2), !is.na(SF36PCS_HLEQ1<=100), !is.na(SF36PCS_HLEQ1>=72)) %>%
summarise(AGE_mean = mean(AGE2)) %>%
Thanks in advance.