Open kobekko94 opened 6 years ago
Also, is it possible to display tables in these issue comments?
Please stop pasting R code into issues! Put this into an actual R or Rmd file and tell me where to look (give a filename). What do you want to do this for? Display? Unfortunately, the underlying data_frame / tibble (and also data.frame) doesn't support nested column names.
I would suggest you separate your task into two steps - getting things into rough shape, and then making things look really nice and clear. Getting the column labels exactly how you want is in step two!
For now, you can start with column names that indicate they are grouped together by making similar names. E.g. adhd1_day1 & adhd1_day4. For now, if things aren't clear, just describe in text before or after the table.
I have two data frames (day1_sum and day4_sum) that have 2 observations and 18 variables:
I want to merge these two data frames such that it displays the same 2 observations and 18 observations, but with 2 sub-observations nested into each observation (does that make sense?) So basically 18 columns, each column with two sub-columns. How do I go about making this?