R: sfc MULTIPOINT

sfc_multipoint {sfheaders} | R Documentation

## sfc MULTIPOINT

### Description

constructs sfc of MULTIPOINT objects

### Usage

    sfc_multipoint(
      obj,
      x = NULL,
      y = NULL,
      z = NULL,
      m = NULL,
      multipoint_id = NULL
    )

### Arguments

`obj` | sorted matrix or data.frame
`x` | x geometry column
`y` | y geometry column
`z` | z geometry column
`m` | m geometry column
`multipoint_id` | column of ids for multipoints

### Value

`sfc` object of MULTIPOINT geometries

### notes

sfheaders functions do not perform any validity checks on the geometries. Nor do they set Coordinate Reference Systems, EPSG, PROJ4 or precision attributes.

The data.frame and matrices you send into the sfheader functions must be ordered.

### Examples

    x <- matrix( c(1:4), ncol = 2 )
    sfc_multipoint( x )

    x <- data.frame( id = 1:2, x = 1:2, y = 2:1 )
    sfc_multipoint( x )
    sfc_multipoint( x, x = "x", y = "y" )
    sfc_multipoint( x, x = "y", y = "x" )
    sfc_multipoint( x, multipoint_id = "id", x = "x", y = "y")

[Package sfheaders version 0.2.1 Index]