R: How to use "stack" instead of "stack" (from raster package)? -


i want use stack function in base r shown in answer of earlier question. however, using raster package (which contains stack function) , package retrieves error:

error in (function (classes, fdef, mtable)  :    unable find inherited method function ‘raster’ signature ‘"numeric"’ 

is there way assign package function? or idea how use stack function in base r , not of raster package?

here reproducible example of earlier question:

library(raster) group1 <- c(101, 106) group2 <- c(102, 104) group3 <- c(105, 103) s <- stack(list(group1 = group1, group2 = group2, group3 = group3)) 

thanks ideas.

you use prefix utils:: this

s <- utils::stack(list(group1 = group1, group2 = group2, group3 = group3)) 

Comments

Popular posts from this blog

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -