get_name: Extract the name of the file in the URL

Description Usage Arguments Value Examples

Description

Extract the name of the file in the URL

Usage

1

Arguments

url

A string with URL and the name of the file

format

The data's format to check the extension

Value

A string with the file's name

Examples

1
2
3
library(dataesgobr)
name <- get_name("archivo-de-datos.csv&rnd=1234", "text/csv")
name <- get_name("https://datos.ayto-arganda.es/contratos.pdf", "application/pdf")

dataesgobr documentation built on June 18, 2019, 5:04 p.m.