Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SIMO_output
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clblatte
SIMO_output
Commits
9efc3933
Commit
9efc3933
authored
4 years ago
by
mpotterf
Browse files
Options
Downloads
Patches
Plain Diff
removed first_load true as the script should be used just once, no need for further specifications
parent
68b94f18
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Main.R
+19
-12
19 additions, 12 deletions
Main.R
with
19 additions
and
12 deletions
Main.R
+
19
−
12
View file @
9efc3933
...
@@ -114,25 +114,31 @@ db_names <- gsub(".db", "", db_input)
...
@@ -114,25 +114,31 @@ db_names <- gsub(".db", "", db_input)
first_load
=
FALSE
first_load
=
FALSE
if
(
sim_variant
%in%
all.variants
){
print
(
"YES"
)
}
else
{
print
(
"NO"
)
}
### the following lines do not need any changes ###
### the following lines do not need any changes ###
if
(
first_load
==
TRUE
){
# If one of the follwing simulation variants is read ...
if
(
sim_variant
%in%
all.variants
)
{
# If one of the follwing simulation variants is read ...
if
(
sim_variant
%in%
all.variants
)
{
print
(
"sim_varian is in all variants"
)
# Run the script with the SQL query for all management regimes
# Run the script with the SQL query for all management regimes
source
(
paste0
(
path
,
"/structure_SIMO_rslDB_FBE.R"
))
source
(
paste0
(
path
,
"/structure_SIMO_rslDB_FBE.R"
))
}
else
{
}
else
{
print
(
"!!!else"
)
# Otherwise, run the script witht the SQL query for Set aside without deadwood extraction (...SA)
# Otherwise, run the script witht the SQL query for Set aside without deadwood extraction (...SA)
# This needs a different SQL query, since the database does not contain harvest information
# This needs a different SQL query, since the database does not contain harvest information
source
(
paste0
(
path
,
"/structure_SIMO_rslDB_SA.R"
))
# Query
source
(
paste0
(
path
,
"/structure_SIMO_rslDB_SA.R"
))
# Query
}
}
}
###
###
...
@@ -153,6 +159,7 @@ columns <- paste0("id,
...
@@ -153,6 +159,7 @@ columns <- paste0("id,
BA,
BA,
V,
V,
N,
N,
SC,
H_dom,
H_dom,
D_gm,
D_gm,
Harvested_V,
Harvested_V,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment