Commit c830b777 authored by Romulo Pereira Goncalves's avatar Romulo Pereira Goncalves
Browse files

We need to return something otherwise it is seem as a function.

parent 29c4d353
Pipeline #24142 passed with stage
in 6 seconds
......@@ -196,7 +196,7 @@ multi_Class_Sampling <- function(in.raster,
)
if (decision3 == "0") {
print("User decided to abort the classification.")
return
return(NULL)
} else if (decision3 == "1") {
init.samples <- init.samples + 50
} else {
......@@ -216,7 +216,7 @@ multi_Class_Sampling <- function(in.raster,
)
if (decision3 == "0") {
print("User decided to abort the classification.")
return
return(NULL)
} else if (decision3 == "1") {
init.samples <- init.samples + 50
nb_models <- nb_models + 15
......@@ -296,7 +296,7 @@ multi_Class_Sampling <- function(in.raster,
)
if (decision3 == "0") {
print("User decided to abort the classification.")
return
return(NULL)
} else if (decision3 == "1") {
init.samples <- init.samples + 50
} else {
......@@ -316,7 +316,7 @@ multi_Class_Sampling <- function(in.raster,
)
if (decision3 == "0") {
print("User decided to abort the classification.")
return
return(NULL)
} else if (decision3 == "1") {
init.samples <- init.samples + 50
nb_models <- nb_models + 15
......@@ -404,7 +404,7 @@ multi_Class_Sampling <- function(in.raster,
)
if (decision3 == "0") {
print("User decided to abort the classification.")
return
return(NULL)
} else if (decision3 == "1") {
sample2 <- sample2 + 50
} else {
......@@ -424,7 +424,7 @@ multi_Class_Sampling <- function(in.raster,
)
if (decision3 == "0") {
print("User decided to abort the classification.")
return
return(NULL)
} else if (decision3 == "1") {
sample2 <- sample2 + 50
models2 <- models2 + 15
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment