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

as.tilename(x, ...)

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

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

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

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

# S3 method for 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

Examples

tnm <- as.tilename(c(2, 3))
tnm # 'X2:Y3'
#> [1] "X2:Y3"
as.numeric(tnm) # c(2,3)
#> Warning: NAs introduced by coercion
#> [1] NA