smsBatch: smsBatch

Description Usage Arguments Details Value See Also Examples

Description

Convenience wrapper for smsProcess, to import and combine mulitple files

Usage

1
2
smsBatch(files = "all", removeDuplicates = TRUE, keepUnsent = FALSE,
  charCount = TRUE, noMMS = FALSE)

Arguments

files

A character vector of files to import. Default "all" will import all XML files from the working directory.

removeDuplicates

When TRUE (default), will remove duplicate rows; useful for combining overlapping backups.

keepUnsent

Keeps unsent Draft and Failed messages when TRUE. Defaults to FALSE

charCount

When TRUE, adds a column counting the characters in each text.

noMMS

A flag to specify when no MMS data is present. If no MMS data exists, MMS munging code will throw errors. When TRUE, MMS munging code is skipped.

Details

smsBatch is a convenience wrapper for smsProcess, which pulls and combines multiple XML files of text message records. It can be passed a character string of file names to pass to process, or by default it will pull all XML files in the working directory.

Value

A data.frame of text message data, sorted by date.

See Also

smsProcess For the documentation on the underlying function called by smsBatch

Examples

1
2
3
4
5
#Import all XML files in working directory with default options
smsProcess()
#Import specific files, passing options to smsProceess
smsProcess(c("backup1.xml", "backup2.xml"), keepUnsent = TRUE,
charCount = FALSE, noMMS = TRUE)

ejoranlien/smsprocess documentation built on May 16, 2019, 2:22 a.m.