Rinstapkg (version 0.1.0)

media_type_enum: Lookup Media Type Enum

Description

This function returns the integer value of a specified type of media

Usage

media_type_enum(media_type = c("PHOTO", "VIDEO", "ALBUM"))

Arguments

media_type

character; one of three types of media PHOTO, VIDEO, or ALBUM.

Examples

Run this code
# NOT RUN {
# photo media are mapped to 1
media_type_enum("PHOTO")

# an unknown media type returns NULL
media_type_enum("FAKE_MEDIA_TYPE")
# }

Run the code above in your browser using DataCamp Workspace