1% Generated by roxygen2: do not edit by hand 2% Please edit documentation in R/set.R 3\name{wk_set_z} 4\alias{wk_set_z} 5\alias{wk_set_m} 6\alias{wk_drop_z} 7\alias{wk_drop_m} 8\alias{wk_trans_set} 9\title{Set coordinate values} 10\usage{ 11wk_set_z(handleable, z, ...) 12 13wk_set_m(handleable, m, ...) 14 15wk_drop_z(handleable, ...) 16 17wk_drop_m(handleable, ...) 18 19wk_trans_set(value, use_z = NA, use_m = NA) 20} 21\arguments{ 22\item{handleable}{A geometry vector (e.g., \code{\link[=wkb]{wkb()}}, \code{\link[=wkt]{wkt()}}, \code{\link[=xy]{xy()}}, 23\code{\link[=rct]{rct()}}, or \code{\link[sf:sfc]{sf::st_sfc()}}) for which \code{\link[=wk_handle]{wk_handle()}} is defined.} 24 25\item{z, m}{A vector of Z or M values applied feature-wise and recycled 26along \code{handleable}. Use \code{NA} to keep the existing value of a given 27feature.} 28 29\item{...}{Passed to the \code{\link[=wk_handle]{wk_handle()}} method.} 30 31\item{value}{An \code{\link[=xy]{xy()}}, \code{\link[=xyz]{xyz()}}, \code{\link[=xym]{xym()}}, or \code{\link[=xyzm]{xyzm()}} of coordinates 32used to replace values in the input. Use \code{NA} to keep the existing 33value.} 34 35\item{use_z, use_m}{Used to declare the output type. Use \code{TRUE} to 36ensure the output has that dimension, \code{FALSE} to ensure it does not, 37and \code{NA} to leave the dimension unchanged.} 38} 39\description{ 40Set coordinate values 41} 42\examples{ 43wk_set_z(wkt("POINT (0 1)"), 2) 44wk_set_m(wkt("POINT (0 1)"), 2) 45wk_drop_z(wkt("POINT ZM (0 1 2 3)")) 46wk_drop_m(wkt("POINT ZM (0 1 2 3)")) 47 48} 49