Description Usage Arguments Details Value Author(s) References Examples
View source: R/merge_mbox_all.R
Use this function for merging all mbox files into one tibble object.
1 | merge_mbox_all(path = ".", file = NULL)
|
path |
A character vector of full path names; the default corresponds to the working directory, getwd. Tilde expansion (see path.expand) is performed. Missing values will be ignored. |
file |
Output RDS file if you want to save. The default is NULL, which is not saving the output as a file. |
merge_mbox_all
See example below.
One tibble object for all the merged mbox files in your current directory will be returned.
JooYoung Seo, jooyoung@psu.edu
Soyoung Choi, sxc940@psu.edu
https://en.wikipedia.org/wiki/Mbox
https://docs.python.org/3/library/mailbox.html
https://www.anaconda.com/download/
1 2 3 4 5 6 7 8 | # Changing working directory to temp for the demonstration purpose only.
setwd(tempdir())
library(mboxr)
test_path <- system.file("extdata", package = "mboxr")
# Save your own RDS file as an output if you need it:
data <- merge_mbox_all(path = test_path, file = "output.rds")
# Now you can use the imported file as a tibble.
str(data)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.