Skip to contents

Create an address object

Usage

as.address(addr, validate = FALSE)

Arguments

addr

An email address.

validate

Whether to validate the address.

Value

A list of address objects.

Examples

as.address("gerry@gmail.com")
#> [1] "gerry@gmail.com"
as.address("Gerald <gerry@gmail.com>")
#> [1] "Gerald <gerry@gmail.com>"
as.address(c("Gerald <gerry@gmail.com>", "alice@yahoo.com", "jim@aol.com"))
#> [1] "Gerald <gerry@gmail.com>" "alice@yahoo.com"         
#> [3] "jim@aol.com"             
as.address("Gerald <gerry@gmail.com>, alice@yahoo.com, jim@aol.com")
#> [1] "Gerald <gerry@gmail.com>"
as.address("Durrell, Gerald <gerry@gmail.com>")
#> [1] "Durrell, Gerald <gerry@gmail.com>"