Skip to contents

Accessors for syn_media content and type

Usage

media_type(x)

media_content(x)

Arguments

x

A syn_media object.

Value

media_type() returns the type tag ("text", "image", "audio", "score"); media_content() returns the wrapped object.

See also

Other media functions: is_syn_media()

Examples

m <- as_syn_media("some text")
media_type(m)
#> [1] "text"