powered by
dplyr verbs for stars objects
filter.stars(.data, ...)mutate.stars(.data, ...)select.stars(.data, ...)pull.stars(.data, var = -1)as.tbl_cube.stars(x, ...)slice.stars(.data, along, index, ..., drop = length(index) == 1)
mutate.stars(.data, ...)
select.stars(.data, ...)
pull.stars(.data, var = -1)
as.tbl_cube.stars(x, ...)
slice.stars(.data, along, index, ..., drop = length(index) == 1)
object of class stars
stars
see filter
see pull
name or index of dimension to which the slice should be applied
integer value(s) for this index
logical; drop dimensions that only have a single index?
# NOT RUN { tif = system.file("tif/L7_ETMs.tif", package = "stars") x1 = read_stars(tif) library(dplyr) x1 %>% slice("band", 2:3) x1 %>% slice("x", 50:100) # }
Run the code above in your browser using DataLab