address: Create an address object

View source: R/ggirl.R

addressR Documentation

Create an address object

Description

This function takes string inputs and converts them into an address object that can be used to send irl art (or as a return address).

Usage

address(
  name,
  address_line_1,
  address_line_2 = NULL,
  city,
  state = NULL,
  postal_code,
  country
)

Arguments

name

The name for the address

address_line_1

The first line of the address

address_line_2

(Optional) A second address line, such as an apartment number.

city

the city

state

(Optional) The state to send to

postal_code

The postal code (ZIP code in the US)

country

The 2-character ISO-1366 code for the country. Non-US shipping is experimental!

Examples

send_address <- address(name = "RStudio", address_line_1 = "250 Northern Ave",
  city = "Boston", state = "MA", postal_code = "02210", country = "US")


jnolis/ggirl documentation built on July 1, 2023, 4:51 p.m.