Rmarkdown footer1/2/2024 ![]() ![]() First six car models in the mtcars dataset", top = T) %>% ![]() In addition to footnotes, you may want to attach a title of your table. Merge the row for header space: merge_at().Add a header (i.e. caption or table title) at the top of your table The source is from Henderson and Velleman (1981), Building multiple regression models interactively. Merge_at(., i = 1, j = 1:ncol(dat), part = "footer") %>%Īdd_footer(., model = "** This is a data frame with 32 observations on 11 (numeric) variables. If you want to add multiple footnotes at the bottom of your table, you can change the row number i=1 to i=2 and determine whether it goes above or below the first footnote by using top= option. In order to fix this problem, we need to merge the footnote’s row by using merge_at() function in the flextable package.Īdd_footer(., model = "* The data was extracted from the 1974 Motor Trend US magazine, and comprises fuel consumption and 10 aspects of automobile design and performance for 32 automobiles (1973–74 models).") %>% This happens because there are invisible compartments between columns at the footnote row. Footnotes let you reference relevant information without disrupting the flow of what youre trying to say: Here is a simple footnote1. However, a simple workaround would be to use a normaltag but style it like a header. * The data was extracted from the 1974 Motor Trend US magazine, and comprises fuel consumption and 10 aspects of automobile design and performance for 32 automobiles (1973–74 models). Going by the comments there already seems to be an issue dealing with this particular problem. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |