Skip to contents

Checks that a given input corresponds to the format expected of a download data frame, consistently returns expected format

Usage

cas_get_urls_df(urls = NULL, index = FALSE, index_group = NULL, ...)

Arguments

url

A character vector or a data frame with at least two columns, id and url

Value

Consistently returns a data frame with at least two columns: a numeric id column, and a character url column.

Examples


cas_get_urls_df(c(
  "https://example.com/a/",
  "https://example.com/b/"
))
#> # A tibble: 2 × 2
#>      id url                   
#>   <int> <chr>                 
#> 1     1 https://example.com/a/
#> 2     2 https://example.com/b/