| rmf_as_list.stars | R Documentation | 
Convert a stars object to rmf_list
## S3 method for class 'stars' rmf_as_list( obj, dis, select = names(obj), k = NULL, prj = rmf_get_prj(dis), kper = attr(obj, "kper"), op = sf::st_intersects, ... )
obj | 
 
  | 
dis | 
 
  | 
select | 
 integer or character vector denoting the variables to select from   | 
k | 
 optional integer specifying the layer index for each feature. If not present, all features are assumed to be in layer 1.  | 
prj | 
 
  | 
kper | 
 optional integers specifying the stress-periods during which this rmf_list is active  | 
op | 
 geometric operator to use in the spatial join. Defaults to   | 
... | 
 additional arguments passed to   | 
obj is converted to sf using sf::st_as_sf. rmf_as_list is then called on the resulting sf object.
This function is intended for stars objects with geometry dimensions (e.g. sf objects).
a rmf_list object
sfc <- sf::st_sfc(list(sf::st_point(c(100,200)), sf::st_point(c(750, 800)), sf::st_point(c(700, 850)))) obj <- sf::st_sf(q = c(-500, -400, -300), m = 2, geom = sfc) s <- stars::st_as_stars(obj) dis <- rmf_create_dis() rmf_as_list(s, dis)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.