data-raw/DATASET.R

## code to prepare `DATASET` dataset goes here

setwd("C:/Users/User/Dropbox/Student_Tom/ENTRANCES Data WP 3") #set wd to dataset location
EntrancesData<-read.csv("EntrancesDataset.csv", sep=",")[,-1]
setwd("C:/Users/User/Dropbox/Student_Tom/R Packages ENTRANCES/EntrancesDataPackage") #set wd to package folder
usethis::use_data(EntrancesData, compress="xz", overwrite=T)

rio::import(file = url,which = 2)
NUTS<-rio::import("https://ec.europa.eu/eurostat/documents/345175/629341/NUTS2021.xlsx", which = "NUTS & SR 2021")
NUTS<-NUTS[,1]
NUTS2016<-c("ITG2B", "ITG2C")
NUTS<-c(NUTS, NUTS2016)
NUTS_data<-data.frame(NUTS=NUTS)
usethis::use_data(NUTS_data, compress="xz", overwrite=T)
?usethis::use_data

setwd("C:/Users/User/Dropbox/Student_Tom/ENTRANCES Data WP 3") #set wd to dataset location
LAU<-rio::import("Region identification.xlsx", which = "LAU")
LAU_data<-data.frame(LAU_ID=LAU$LAU, NUTS_ID=LAU$NUTS_3)
setwd("C:/Users/User/Dropbox/Student_Tom/R Packages ENTRANCES/EntrancesDataPackage") #set wd to package folder
usethis::use_data(LAU_data, compress="xz", overwrite=T)
THartl1/EntrancesDataPackage documentation built on Dec. 18, 2021, 4:01 p.m.