as.tilename: Alphanumeric tile names

View source: R/sperrorest_misc.R

as.tilenameR Documentation

Alphanumeric tile names

Description

Functions for generating and handling alphanumeric tile names of the form 'X2:Y7' as used by partition_tiles and represampling_tile_bootstrap.

Usage

as.tilename(x, ...)

## S3 method for class 'numeric'
as.tilename(x, ...)

## S3 method for class 'tilename'
as.character(x, ...)

## S3 method for class 'tilename'
as.numeric(x, ...)

## S3 method for class 'character'
as.tilename(x, ...)

## S3 method for class 'tilename'
print(x, ...)

Arguments

x

object of class tilename, character, or numeric (of length 2).

...

additional arguments (currently ignored).

Value

object of class tilename, character, or numeric vector of length 2

See Also

partition_tiles, represampling, represampling_tile_bootstrap

Examples

tnm <- as.tilename(c(2, 3))
tnm # 'X2:Y3'
as.numeric(tnm) # c(2,3)

sperrorest documentation built on Oct. 16, 2022, 5:05 p.m.