removeTile: Remove a tile from the tile library

Description Usage Arguments Value Author(s) See Also Examples

View source: R/removeTile.R

Description

This is a simple function to remove a tile (with the filename tileFilename) from the tile library (passed as the argument libForMosaic).

Usage

1
removeTile(tileFilename, libForMosaic)

Arguments

tileFilename

The filename of the tile to remove from the tile library.

libForMosaic

The library containing the data of the tiles in the parameter space from which the tile should be removed.

Value

It returns the tile library libForMosaic, with the requested tile removed.

Author(s)

Alberto Krone-Martins

See Also

addBackTile

Examples

1
2
3
4
5
6
7
8
9
# Creates the tile library data frame from the example tiles
my2MassTiles <- createLibraryIndexDataFrame(system.file("extdata/2Massier", package="RsimMosaic"))

# Get a random filename of one of the tiles
idx <- round(runif(1, 1, length(my2MassTiles[,1])))
tileToRemove <- as.character(my2MassTiles[idx,1])

# Remove it from the library
my2MassTiles <- removeTile(tileToRemove, my2MassTiles)

RsimMosaic documentation built on May 2, 2019, 7:29 a.m.