Skip to contents

Assigns new crs information.

Usage

fm_crs(x) <- value

fm_crs_oblique(x) <- value

## S3 replacement method for class 'NULL'
fm_crs(x) <- value

## S3 replacement method for class 'NULL'
fm_crs_oblique(x) <- value

# S3 method for fm_segm
fm_crs(x) <- value

# S3 method for fm_list
fm_crs(x) <- value

# S3 method for fm_mesh_2d
fm_crs(x) <- value

# S3 method for fm_lattice_2d
fm_crs(x) <- value

# S3 method for sf
fm_crs(x) <- value

# S3 method for sfg
fm_crs(x) <- value

# S3 method for sfc
fm_crs(x) <- value

# S3 method for Spatial
fm_crs(x) <- value

# S3 method for crs
fm_crs_oblique(x) <- value

# S3 method for CRS
fm_crs_oblique(x) <- value

# S3 method for fm_CRS
fm_crs_oblique(x) <- value

# S3 method for fm_crs
fm_crs_oblique(x) <- value

# S3 method for fm_segm
fm_crs_oblique(x) <- value

# S3 method for fm_mesh_2d
fm_crs_oblique(x) <- value

# S3 method for fm_lattice_2d
fm_crs_oblique(x) <- value

# S3 method for inla.CRS
fm_crs_oblique(x) <- value

Arguments

x

Object to assign crs information to

value

For fm_crs<-(), object supported by fm_crs(value).

For fm_crs_oblique<-(), NA or a numeric vector, see the oblique argument for fm_crs(). For assignment, NULL is treated as NA.

Value

The modified object

Functions

  • fm_crs(x) <- value: Automatically converts the input value with fm_crs(value), fm_crs(value, oblique = NA), fm_CRS(value), or fm_CRS(value, oblique = NA), depending on the type of x.

  • fm_crs_oblique(x) <- value: Assigns new oblique information.

See also

Examples

x <- fm_segm()
fm_crs(x) <- fm_crs("+proj=longlat")
fm_crs(x)$proj4string
#> [1] "+proj=longlat +datum=WGS84 +no_defs"