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
Habitat Sampler
HabitatSampler
Commits
817e6838
Commit
817e6838
authored
Jun 09, 2021
by
Romulo Pereira Goncalves
Browse files
We should check the class type and not the content.
parent
a290cbd4
Pipeline
#24196
passed with stages
in 3 minutes and 56 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
R-package/R/inner_procedure.r
View file @
817e6838
...
...
@@ -79,7 +79,7 @@ sample_nb <- function(raster,
n
<-
nb_it
sample_size
<-
r
max_samples_per_class
<-
sample_size
*
5
if
(
init.seed
==
"sample"
)
{
if
(
class
(
init.seed
)
==
"character"
&&
init.seed
==
"sample"
)
{
seed2
<-
sample
(
c
(
1
:
1000000
),
size
=
nb_mean
,
replace
=
F
)
}
else
{
seed2
<-
init.seed
...
...
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