'tables in Rmardown header

I have problems to be able to print my tables produced with R mardown I show an example As you can see, the table is placed at the top of the page and I would like it to be just below the code

enter image description here

show preamble code

output: pdf_document
library(edstan)

preview_rows <- seq(from = 1, to = nrow(spelling), length.out = 10)
muestra<-as.data.frame(spelling[preview_rows, ])

kbl(muestra,booktabs=T) %>%
kable_styling(latex_options=c("striped"))

r


Solution 1:[1]

library(edstan)

preview_rows <- seq(from = 1, to = nrow(spelling), length.out = 10)
muestra<-as.data.frame(spelling[preview_rows, ])

kbl(muestra,booktabs=T) %>%
kable_styling(latex_options=c("striped","hold_position"))

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 yefersonG