-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from NOAA-EDAB/ATLNTS-358_groupNames
Atlnts 358 group names
- Loading branch information
Showing
16 changed files
with
744 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#' Read and process changes in groups from V1.0 to V2.0 | ||
#' | ||
#' Create a txt file in md format for use in the wiki | ||
#' | ||
|
||
codes <- readr::read_csv(here::here("data-raw/data","specieslist_v1_2.csv")) %>% | ||
dplyr::select(GroupV1,Atcode,GroupV2,At2code) %>% | ||
dplyr::distinct() %>% | ||
dplyr::arrange(Atcode,At2code) | ||
|
||
# format to markdown table. Copy output to wiki | ||
# open file and write | ||
outputFile <- here::here("data","v1v2GroupMap.txt") | ||
fileConn<-file(outputFile,open="w") | ||
header <- paste0("|",paste0(names(codes),collapse = "|"),"|") | ||
cat(header,file=fileConn,append=T) | ||
cat("\n",file=fileConn,append=T) | ||
spacer <- paste0("|",paste0(rep("---",ncol(codes)),collapse = "|"),"|") | ||
cat(spacer,file=fileConn,append=T) | ||
cat("\n",file=fileConn,append=T) | ||
|
||
for (irow in 1:nrow(codes)) { | ||
rowData <- paste0("|",paste0(codes[irow,],collapse = "|"),"|") | ||
cat(rowData,file=fileConn,append=T) | ||
cat("\n",file=fileConn,append=T) | ||
} | ||
|
||
close(fileConn) | ||
|
||
|
11 changes: 6 additions & 5 deletions
11
data-raw/stockSMART_data.r → data-raw/create_stockSMART_data.r
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
data-raw/initialFunctionalGroupNames.csv → ...-raw/data/initialFunctionalGroupNames.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.