Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust vectors #68

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions R/Adjustments.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ adjust.fishing <- function(Rsim.scenario, parameter, group = NA, sim.year = 1,
#'@export
adjust.scenario <- function(Rsim.scenario, parameter, group, groupto = NA, value){
#Lookup group numbers
if(group == 'all'){
if(group[1] == 'all'){
groupnum <- 0:Rsim.scenario$params$NUM_GROUPS
} else {
groupnum <- Rsim.scenario$params$spnum[which(Rsim.scenario$params$spname
== group)]
%in% group)]
}
if(!is.na(groupto)){
groupnumto <- Rsim.scenario$params$spnum[which(Rsim.scenario$params$spname
== groupto)]
%in% groupto)]
}

#Lookup parameter number
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ To view release notes please visit the [wiki](https://github.com/NOAA-EDAB/Rpath


*This repository is a scientific product and is not official communication of the National Oceanic and Atmospheric Administration, or the United States Department of Commerce. All NOAA GitHub project code is provided on an ‘as is’ basis and the user assumes responsibility for its use. Any claims against the Department of Commerce or Department of Commerce bureaus stemming from the use of this GitHub project will be governed by all applicable Federal law. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recommendation or favoring by the Department of Commerce. The Department of Commerce seal and logo, or the seal and logo of a DOC bureau, shall not be used in any manner to imply endorsement of any commercial product or activity by DOC or the United States Government.*

<img src="https://raw.githubusercontent.com/nmfs-general-modeling-tools/nmfspalette/main/man/figures/noaa-fisheries-rgb-2line-horizontal-small.png" height="75" alt="NOAA Fisheries">

[U.S. Department of Commerce](https://www.commerce.gov/) | [National Oceanographic and Atmospheric Administration](https://www.noaa.gov) | [NOAA Fisheries](https://www.fisheries.noaa.gov/)
1 change: 1 addition & 0 deletions pkgdown/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import url("https://nmfs-general-modeling-tools.github.io/nmfspalette/extra.css");
Loading