Skip to content
Snippets Groups Projects
Verified Commit 484dcd96 authored by Ruben van Dijk's avatar Ruben van Dijk
Browse files

Fix swimmerId.txt.

parent 1c746902
Branches
No related tags found
1 merge request!6Filter dates and removed old figures
......@@ -198,8 +198,12 @@ app$add_static("/libdir", "libdir")
backend <- BackendRserve$new()
swimmerData <- tryCatch(
{
dframe <- read.table(file='swimmerId.txt',header=FALSE, sep='=',col.names=c('Key','Value'))
data.table(dframe,key='Key')
df <- read.table(file='swimmerId.txt',header=FALSE, sep='=',col.names=c('Key','Value'))
output <- list()
for (row in seq_len(nrow(df))) {
output[[df$Key[row]]] <- df$Value[row]
}
output
},
warning = function(cond) {
print("WARNING:")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment