Rstudio descriptive statistics12/4/2023 ![]() Yet, I have to transpose the data to approximate my goal but, the □̄ and sd are on alternating rows.Īny help or suggestions would be greatly appreciated. Using my data (below), I can use 'group_by()' and 'across()' to estimate the □̄ and sd. I’ve looked through several options but haven't found a way to create a table that shows: means(sd) for multiple variables organized by group. `Mean (SD)` = glue(")"),Ĭreated on by the reprex package (v0.3.0) Select(ob, num1, num2) %>% #select(is.numeric()) requires dplyr 1.0.0 But more often than not of the summary table packages have a set of functions that do this kind of thing for you. I personally like to just build the table I'd like to see. For example, qwraps2 has this nice guide: Īlso the Tidyverse has a bunch of packages that make munging and summarizing data quite easy, and then tools like gt and kable help get your summary table polished for publication. A good way to review which will work best for you is to check out the vignettes. There's a bunch of R packages that help you create summary tables. ![]() I'd suggest creating a small ame with example data to give folks a sense of what you're working with. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |