Skip to content

Commit

Permalink
Resolved the issue of the present/absent data with a value of 1 raise…
Browse files Browse the repository at this point in the history
…d in issue #7.
  • Loading branch information
SimonGoring committed Aug 29, 2017
1 parent e537532 commit 234e8fc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions functionalized_run.R
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,12 @@ test_dwc_export <- function(x){
}
}
}

if(output$sampleSizeValue == 1 & output$sampleSizeUnit == "present/absent") {
output$sampleSizeValue = NA
output$sampleSizeUnit = NA
}

write.csv(output,
paste0('dwc_test_output/', x$dataset.meta$dataset.id, '_test_', x$dataset.meta$dataset.type, '.csv'),
row.names = FALSE, na = "")
Expand Down

0 comments on commit 234e8fc

Please sign in to comment.