Examples for 'stars::dplyr'


dplyr verbs for stars objects

Aliases: dplyr filter.stars filter.stars_proxy mutate.stars mutate.stars_proxy transmute.stars transmute.stars_proxy select.stars select.stars_proxy rename.stars rename.stars_proxy pull.stars pull.stars_proxy as.tbl_cube.stars slice.stars slice.stars_proxy replace_na.stars replace_na.stars_proxy

Keywords:

### ** Examples

tif = system.file("tif/L7_ETMs.tif", package = "stars")
x1 = read_stars(tif)
if (require(dplyr, quietly = TRUE)) {
 x1 %>% slice("band", 2:3)
 x1 %>% slice("x", 50:100)
}
Attaching package: 'dplyr'
The following object is masked from 'package:rcloud.support':

    select
The following objects are masked from 'package:stats':

    filter, lag
The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union
stars object with 3 dimensions and 1 attribute
attribute(s):
             Min. 1st Qu. Median     Mean 3rd Qu. Max.
L7_ETMs.tif    11      56     68 70.50099      82  252
dimension(s):
     from  to  offset delta                     refsys point x/y
x      50 100  288776  28.5 SIRGAS 2000 / UTM zone 25S FALSE [x]
y       1 352 9120761 -28.5 SIRGAS 2000 / UTM zone 25S FALSE [y]
band    1   6      NA    NA                         NA    NA    

[Package stars version 0.6-7 Index]