Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lars Dalby
almass
Commits
ca0c35d6
Commit
ca0c35d6
authored
Jan 04, 2019
by
LDalby
Browse files
Write out the numbers probe
parent
0c24fd56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Grendel/scenario_01_goose-numbers.R
View file @
ca0c35d6
...
...
@@ -65,6 +65,11 @@ if(file_exists("GooseFieldForageData.txt"))
if
(
file_exists
(
"GooseGrainDist.txt"
))
{
read_tsv
(
"GooseGrainDist.txt"
,
col_types
=
"ic"
)
->
grain_dist
}
if
(
file_exists
(
"GoosePopulationData.txt"
))
{
read_tsv
(
"GoosePopulationData.txt"
,
col_types
=
"iiiiiiiid"
)
->
goose_numbers
}
# Write ----
index
<-
lineno
[
counter
]
...
...
@@ -81,6 +86,10 @@ if(file_exists("GooseFieldForageData.txt"))
mutate
(
param
=
param
[
i
],
value
=
value
[
i
])
%>%
write_tsv
(
path
=
path
(
resultpath
,
"scenario-grain-distributions.txt"
),
append
=
TRUE
)
goose_numbers
%>%
mutate
(
param
=
param
[
i
],
value
=
value
[
i
])
%>%
write_tsv
(
path
=
path
(
resultpath
,
"scenario-goose-numbers.txt"
),
append
=
TRUE
)
}
# As the last thing we delete the goose output files
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment