-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathproust_books.R
More file actions
26 lines (26 loc) · 902 Bytes
/
Copy pathproust_books.R
File metadata and controls
26 lines (26 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#' Tidy data frame of Marcel Proust's 7 novels from La Recherche
#'
#' Returns a tidy tibble of Marcel Proust's 7 novels from À la recherche du temps
#' perdu. The tibble contains four columns: text, book, volume and year.
#'
#' @return A tibble with four columns: \code{text}, \code{book}, \code{volume} and \code{year}.
#'
#' @name proust_books
#'
#' @examples
#'
#' #Create the tibble
#' proust <- proust_books()
#'
#'
#' @export
proust_books <- function(){
books <- rbind(proustr::ducotedechezswann,
proustr::alombredesjeunesfillesenfleurs,
proustr::lecotedeguermantes,
proustr::sodomeetgomorrhe,
proustr::laprisonniere,
proustr::albertinedisparue,
proustr::letempretrouve)
structure(books, class = c("tbl_df", "tbl", "data.frame"))
}