-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
1,022 additions
and
243 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: FishStatsUtils | ||
Type: Package | ||
Title: Utilities (shared code and data) for FishStats spatio-temporal modeling toolbox | ||
Version: 2.1.0 | ||
Date: 2019-06-10 | ||
Version: 2.2.0 | ||
Date: 2019-07-25 | ||
Authors@R: person("James","Thorson", email="[email protected]", role=c("aut","cre")) | ||
Maintainer: James Thorson <[email protected]> | ||
Description: FishStatsUtils contains utilities (shared code and data) used by multiple | ||
|
@@ -30,7 +30,6 @@ Imports: | |
ThorsonUtilities, | ||
abind, | ||
corpcor, | ||
TMBhelper, | ||
pander, | ||
formatR | ||
Depends: | ||
|
@@ -39,8 +38,8 @@ Depends: | |
R (>= 3.1.0) | ||
Suggests: | ||
testthat | ||
Remotes: james-thorson/utilities, | ||
kaskr/TMB_contrib_R/TMBhelper | ||
Remotes: | ||
james-thorson/utilities | ||
License: GPL-3 | ||
LazyData: yes | ||
BuildVignettes: yes | ||
|
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
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,23 @@ | ||
|
||
#' Combine lists | ||
#' | ||
#' \code{combine_lists} combines two lists with precident given to one over the other | ||
#' | ||
#' @param default default values for combined list | ||
#' @param input preferred values for combined list | ||
#' | ||
#' @return combined list. | ||
#' | ||
#' @export | ||
combine_lists = function( default, input ){ | ||
output = default | ||
for( i in seq_along(input) ){ | ||
if( names(input)[i] %in% names(default) ){ | ||
output[[names(input)[i]]] = input[[i]] | ||
}else{ | ||
output = c( output, input[i] ) | ||
} | ||
} | ||
return( output ) | ||
} | ||
|
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
Oops, something went wrong.