getblock: getblock selects the given block data from input data.frame

Description Usage Arguments Value Examples

Description

getblock literally selects the data relating to the input blocks. The function stops with a warning if an invalid block is requested. It converts the oid column to numeric and adds a repeat column counting the years in which catches was taken

Usage

1
getblock(inblock, indat, indices = c(5:11))

Arguments

inblock

a vector of blocks or a block as a number

indat

the abalone data.frame from which to select the data

indices

identifies the column indices of the years within the data over which to summarize the data for repeated years

Value

a data.frame containing records only for the requested blocks

Examples

1
2
3
4
5
6
7
## Not run: 
 # ab <- readRDS(paste0(datadir,"G1Ha_2018_10_23.rds"))#get spatial obj
 # abdat <- getlatlong(ab)     # convert to data.frame + lat long
 # addat <- getblock(24,abdat)
 # addat <- getblock(124,abdat)

## End(Not run)

haddonm/abspatial documentation built on June 7, 2019, 9:54 a.m.