R语言绘制基线资料表

#转换数据类型
    mydata <- data %>%        # 创建新数据集新变量
        #note
            #Age=Age,     #连续变量
            #Gender = factor(Gender, levels = c(1, 2),labels = c("Male","Female"))                           #分类变量

        transmute(
            Groups= factor(data$Groups),
            Age = Age,
            Age.of.menarche 

你可能感兴趣的:(R,统计)