Dear list,

I have a file with names of raster (example: names_raster) and want create
a stack (multiple layers).

# example file
names_raster

[1] "img1" "img2" "img3" "img4" "img5"


#########################

# process ERROR

layers <- stack (noquote(paste(names_raster, collapse = ",", sep="")))


Erro em rep.int(names(x), lapply(x, length)) : valor de 'times' inválido

##########################


# Expected response

# noquote(paste(names_raster, collapse = ",", sep=""))

# img1,img2,img3,img4,img5


# process OK

#layers <- stack (img1,img2,img3,img4,img5)


Thanks

	[[alternative HTML version deleted]]

