Skip to content

Commit

Permalink
Add R notebook for data exploration
Browse files Browse the repository at this point in the history
  • Loading branch information
HSalat committed Feb 19, 2024
1 parent f7e2b9b commit f9cbcfa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions notebooks/R/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
data/
.Rhistory
.RData
R.Rproj
.Rproj.user/
10 changes: 10 additions & 0 deletions notebooks/R/main.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
folderIn <- "data"

readNTS <- function(name,folderIn = "data"){
data <- read.table(file.path(folderIn,"UKDA-5340-tab","tab",paste0(name,"_eul_2002-2022.tab")), sep="\t", header=TRUE)
return(data)
}

NTS <- readNTS("individual",folderIn)
stage <- readNTS("stage",folderIn)
trip <- readNTS("trip",folderIn)

0 comments on commit f9cbcfa

Please sign in to comment.