函数调用报错
select:unused argument
select
with dplyr::select
dat <- read_csv(ahi-cesd.csv):Error in is.connection(x) : 找不到对象'ahi'
c("id", "intervention")
filter(data, gender == "female")
select(all_dat, ahiTotal, cesdTotal, sex, age, educ, income, occasion, elapsed.days)
作图有误
if your graphs are looking weird this might be the reason
str(summarydata) #作图前观察数据类型
summarydata <- summarydata %>%
mutate(sex = as.factor(sex),
educ = as.factor(educ),
income = as.factor(income)) #overwrite the data that is in the column sex with sex as a factor