Hi, I keep getting the following error message when I run this code and I do not know why. Please could someone suggest a solution to rectify this? Thanks in advance.
SF36_HT_M <- Full_data %>% select(SF36HT_FOLLOW4) %>% filter(!is.na(SF36HT_FOLLOW4)) %>% mean() %>% print()
Error: In mean.default(., !is.na(SF36HT_FOLLOW4)): argument is not numeric or logical: returning NA