read_mbox

0th

Percentile

Converting an mbox file into a tibble data_frame.

Use this function for importing and converting an mbox file into a tibble object.

Keywords
read_mbox
Usage
read_mbox(mbox = NULL, file = NULL)
Arguments
mbox

Input mbox file.

file

Output RDS file if you want to save. The default is NULL, which is not saving the output as a file.

Details

read_mbox

See example below.

Value

Tibble object for the input mbox file will be returned.

References

https://en.wikipedia.org/wiki/Mbox

https://docs.python.org/3/library/mailbox.html

https://www.anaconda.com/download/

Aliases
  • read_mbox
Examples
# NOT RUN {
# Changing working directory to temp for the demonstration purpose only.
setwd(tempdir())
library(mboxr)
# Feeding an mbox file through read_mbox function:
test <- system.file("extdata", "test1.mbox", package = "mboxr")
data <- read_mbox(mbox = test, file = "output.rds")
# Now you can use the imported file as a tibble.
str(data)
# }
Documentation reproduced from package mboxr, version 0.1.5, License: GPL-3

Community examples

Looks like there are no examples yet.