Skip to content

Commit

Permalink
Changes related to issue #7. Spacing the pipes in pipe separated fiel…
Browse files Browse the repository at this point in the history
…ds. Also changing `organismQuanityType` to `dwc:preparations`.
  • Loading branch information
SimonGoring committed Dec 27, 2016
1 parent 99fe9cf commit c5c06d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functionalized_run.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ test_dwc_export <- function(x){
WHERE (ds.DatasetID = ",dataset,")"), stringsAsFactors = FALSE)
if (nrow(contacts) > 0) {
query_out$ContactName <- paste0(unlist(contacts),
collapse = "|")
collapse = " | ")
} else {
warning("No contact name associated with this dataset.")
query_out$ContactName <- NA
Expand Down Expand Up @@ -345,8 +345,8 @@ test_dwc_export <- function(x){
cooccurranceID <- cooccurranceID[!cooccurranceID %in% output$occurrenceID[i]]
if (length(cooccurrance) > 0) {
output$associatedTaxa[i] <- paste0("cooccurrs with:", cooccurrance, collapse = "|")
output$associatedOccurrences[i] <- paste0("cooccurrs with:", cooccurranceID, collapse = "|")
output$associatedTaxa[i] <- paste0("cooccurrs with:", cooccurrance, collapse = " | ")
output$associatedOccurrences[i] <- paste0("cooccurrs with:", cooccurranceID, collapse = " | ")
} else {
output$associatedTaxa[i] <- ""
output$associatedOccurrences[i] <- ""
Expand Down

0 comments on commit c5c06d2

Please sign in to comment.