I'm an R Markdown newbie. I've got a db as follows:
text <- c("aaa","bbb", "ccc")
year <- c(2003,2004,2005)
author <- c("MV", "RV", "MV")
db <- as.data.frame(cbind(text, year, author))
I would like to print it a bullet point as follows:
aaa
2003, MV
bbb
2004, RV
ccc
2005, MV
I tried as follows:
- `r db[1, 1]`
- `r db[1, 2]`
- `r db[1, 3]`
- `r db[2, 1]`
- `r db[2, 2]`
- `r db[2, 3]`
- `r db[3, 1]`
- `r db[3, 2]`
- `r db[3, 3]`
Is there a way to do it automatically without listing each line?