Skip to content

Commit e984aad

Browse files
committed
Update world_gen.R
1 parent 5b20889 commit e984aad

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

R/world_gen.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ world_gen = function(template,
478478
c("cell_length",cell_len),
479479
c("streams","none"), c("roads","none"), c("impervious","none"),c("roofs","none"))
480480

481-
if (any(!map_info[,1] == "slope")) {
481+
if (!"slope" %in% map_info[,1]) {
482482
slope = NULL
483483
for (i in 1:length(which(var_names == "slope"))) {
484484
slope = c(slope, template_clean[[which(var_names == "slope")[i]]][3])

0 commit comments

Comments
 (0)