From 959127c973f81cd6c1dd2df17d3aef7d07ab290b Mon Sep 17 00:00:00 2001 From: Krzysztof Dyba <35004826+kadyb@users.noreply.github.com> Date: Mon, 2 Oct 2023 10:43:41 +0200 Subject: [PATCH] mention `is.bool()` in `datatype()` doc --- man/datatype.Rd | 5 ++++- man/is.bool.Rd | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/man/datatype.Rd b/man/datatype.Rd index 0de30c3b3..b088e6425 100644 --- a/man/datatype.Rd +++ b/man/datatype.Rd @@ -26,6 +26,9 @@ Get the data types of the fields (attributes, variables) of a SpatVector or of t \value{character} +\seealso{ + \code{\link[=is.bool]{Raster value types}} to check / set the type of SpatRaster values in memory. +} \examples{ f <- system.file("ex/lux.shp", package="terra") @@ -36,7 +39,7 @@ f <- system.file("ex/elev.tif", package="terra") r <- rast(f) datatype(r) -datatype(rast()) +datatype(rast()) # no data type } \keyword{methods} diff --git a/man/is.bool.Rd b/man/is.bool.Rd index 27817ee46..409000baf 100644 --- a/man/is.bool.Rd +++ b/man/is.bool.Rd @@ -45,7 +45,7 @@ See \code{\link{levels}} and \code{\link{cats}} to create categorical layers by } \description{ -\code{as.bool} and \code{as.int} force the values into the correct range (e.g. whole integers) but in-memory cell values are still stored as numeric. They will behave like the assigned types, though, and will be written to files with that data type (if the file type supports it). +\code{as.bool} and \code{as.int} force the values into the correct range (e.g. whole integers) but in-memory cell values are still stored as numeric. They will behave like the assigned types, though, and will be written to files with that data type (if the file type supports it). } \arguments{