pbaurls: pbaurls

Description Usage Arguments Value Examples

View source: R/pbaurls.R

Description

function to create the fixed pbaurls (users don't have to use this unless they are aware of a change in the url composition of PBA or Concello change of name)

Usage

1
2
3
4
5
6
7
pbaurls(
  layer = "./data/base/Concellos_IGN/Concellos_IGN.shp",
  attrname = "NomeMAY",
 
    mainurl = "visorgis.cmati.xunta.es/cdix/descargas/PlanBasicoAutonomico/2020/concellos_ZIPS/",
  PBAprefix = "PBA_2020_"
)

Arguments

layer

Concellos_IGN.shp from IET that serves as base for Concellos Names

attrname

atrribute name used in the function to capture Concellos Names

mainurl

base url where zips are stored

PBAprefix

text piece that goes before Concello to construct the zip url

Value

data.frame with 2 fields Concello|URL . This gives the user the list of all Concellos available (and the right way to write their names...)

Examples

1
2
3
4
5
6
## Not run: 
# create pbaurls (a priori it shouldnt change...)
pbaurls <- pbaurls() # create table
save(pbaurls, file = "./data/pbaurls.RData") # save table

## End(Not run)

cesarkero/PBADownloader documentation built on Feb. 2, 2021, 12:24 a.m.