Deprecated functions in inlabru
Source:R/bru.spatial.R
, R/deprecated.R
, R/environment.R
, and 3 more
inlabru-deprecated.Rd
These functions still attempt to do their job, but will be removed in a future version.
Usage
stransform(splist, crs)
init.tutorial()
fm_has_PROJ6()
fm_not_for_PROJ6(fun = NULL)
fm_not_for_PROJ4(fun = NULL)
fm_fallback_PROJ6(fun = NULL)
fm_requires_PROJ6(fun = NULL)
fm_sp_get_crs(x)
fm_spTransform(x, ...)
# S3 method for default
fm_spTransform(x, crs0 = NULL, crs1 = NULL, passthrough = FALSE, ...)
# S3 method for SpatialPoints
fm_spTransform(x, CRSobj, passthrough = FALSE, ...)
# S3 method for SpatialPointsDataFrame
fm_spTransform(x, CRSobj, passthrough = FALSE, ...)
# S3 method for inla.mesh.lattice
fm_spTransform(x, CRSobj, passthrough = FALSE, ...)
# S3 method for inla.mesh.segment
fm_spTransform(x, CRSobj, passthrough = FALSE, ...)
# S3 method for inla.mesh
fm_spTransform(x, CRSobj, passthrough = FALSE, ...)
ibm_valid_input(...)
# S3 method for bru_mapper_inla_mesh_2d
ibm_amatrix(...)
# S3 method for bru_mapper_inla_mesh_1d
ibm_amatrix(...)
# S3 method for bru_mapper_index
ibm_amatrix(...)
# S3 method for bru_mapper_linear
ibm_amatrix(...)
# S3 method for bru_mapper_matrix
ibm_amatrix(...)
# S3 method for bru_mapper_factor
ibm_amatrix(...)
bru_mapper_offset(...)
# S3 method for bru_mapper_offset
ibm_n(...)
# S3 method for bru_mapper_offset
ibm_values(...)
# S3 method for bru_mapper_offset
ibm_amatrix(...)
# S3 method for bru_mapper_multi
ibm_amatrix(...)
# S3 method for bru_mapper_collect
ibm_amatrix(...)
eval_SpatialDF(...)
Arguments
- splist
list of Spatial* objects
- crs
Coordinate reference system to change to
- fun
The name of the function that requires PROJ6. Default: NULL, which uses the name of the calling function.
- x
The object that should be transformed from it's current CRS to a new CRS
- ...
Potential additional arguments
- crs0
The source sp::CRS or inla.CRS object
- crs1
The target sp::CRS or inla.CRS object
- passthrough
Default is FALSE. Setting to TRUE allows objects with no CRS information to be passed through without transformation.
- CRSobj
The target sp::CRS or inla.CRS object
Details
This function is a convenience method to workaround PROJ4/PROJ6
differences, and the lack of a crs extraction method for Spatial objects.
For newer code, use fm_crs()
instead, that returns crs
objects,
and use fm_as_sp_crs()
to convert to old style sp::CRS
objects.
Functions
stransform()
: Coordinate transformation for spatial objectsThis is a wrapper for the spTransform function provided by the
sp
package. Given a spatial object (or a list thereof) it will transform the coordinate system according to the parametercrs
. In addition to the usual spatial objects this function is also capable of transformingINLA::inla.mesh
objects that are equipped with a coordinate system. Returns a list of Spatial* objects.Deprecated in favour of the
fm_transform
methods.init.tutorial()
: Global setting for tutorial sessions.Use
bru_options_set()
to set specific options instead instead. In versions <= 2.1.15, this function set the INLA integration strategy to "eb" to speed up calculations. This is normally not needed since version 2.2.0, since the only the final iteration will use other than "eb".fm_has_PROJ6()
: Detect whether PROJ6 is availablefm_not_for_PROJ6()
:fm_not_for_PROJ6
is called to warn about using old PROJ4 features even though PROJ6 is availablefm_not_for_PROJ4()
:fm_not_for_PROJ4
is called to give an error when calling methods that are only available for PROJ6fm_fallback_PROJ6()
: Called to warn about falling back to using old PROJ4 methods when a PROJ6 method hasn't been implementedfm_requires_PROJ6()
: Called to give an error when PROJ6 is required but not availablefm_sp_get_crs()
: Wrapper for CRS(projargs) (PROJ4) and CRS(wkt) forsp::Spatial
objects.fm_spTransform()
: Handle transformation of various inla objects according to coordinate reference systems of sp::CRS or INLA::inla.CRS class.fm_spTransform(default)
: The default method handles low level transformation of raw coordinates.ibm_valid_input()
: Use case changed toibm_invalid_output()
ibm_amatrix(bru_mapper_inla_mesh_2d)
: Replaced byibm_jacobian()
ibm_amatrix(bru_mapper_inla_mesh_1d)
: Replaced byibm_jacobian()
ibm_amatrix(bru_mapper_index)
: Replaced byibm_jacobian()
ibm_amatrix(bru_mapper_linear)
: Replaced byibm_jacobian()
ibm_amatrix(bru_mapper_matrix)
: Replaced byibm_jacobian()
ibm_amatrix(bru_mapper_factor)
: Replaced byibm_jacobian()
bru_mapper_offset()
: Creates abru_mapper_const()
mapper.ibm_n(bru_mapper_offset)
: Replaced by bru_mapper_const methodsibm_values(bru_mapper_offset)
: Replaced by bru_mapper_const methodsibm_amatrix(bru_mapper_offset)
: Replaced by bru_mapper_const methodsibm_amatrix(bru_mapper_multi)
: Replaced byibm_jacobian()
ibm_amatrix(bru_mapper_collect)
: Replaced byibm_jacobian()
eval_SpatialDF()
: Replaced by the genericeval_spatial()
Examples
if (FALSE) {
# Note: Only run this if you want to change the inlabru options for this session
# Determine current bru defaults:
bo <- bru_options_get()
init.tutorial()
# Check if it worked:
bru_options_get("control.inla")
}
if (FALSE) {
if (interactive()) {
s <- sp::SpatialPoints(matrix(1:6, 3, 2), proj4string = fm_CRS("sphere"))
fm_sp_get_crs(s)
}
}