R/primitives_1D.r

Defines functions sc_node.sf

Documented in sc_node.sf

#' Arc node topology for simple features. 
#' @name sc_node
#' @param x input simple features object
#' @param ... arguments for methods
#' @importFrom silicate sc_node PRIMITIVE
#' @export
#' @examples
#'# x <- sf::st_read(system.file("extdata/file.geojson", package= "sc"))
#' #sc_node(x)  ## get the nodes
#' ## now get the arcs (should the functions be called arc() and node()?)

sc_node.sf <- function(x, ...) {
  stop("sc_node mehod for sf is not yet supported")
  sc_node(silicate::PRIMITIVE(x))
}
mdsumner/scsf documentation built on May 22, 2019, 5:06 p.m.