Learn R Programming

dataesgobr (version 1.0.0)

get_extension: Get the extension that matches with the format passed like parameter

Description

Get the extension that matches with the format passed like parameter

Usage

get_extension(format)

Arguments

format

A string that contains the format

Value

A string

Examples

Run this code
# NOT RUN {
library(dataesgobr)
extension <- get_extension("text/csv")
extension <- get_extension("application/pdf")
# }

Run the code above in your browser using DataLab