occupancy.predict: Predicts occupancy for all the species in a batchoccupancy...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/DiversityOccu.R

Description

This function takes an batchoccupancy object and predicts occupancy for all species in new data, either a data.frame or a rasterstack.

Usage

1
occupancy.predict(batch, new.data)

Arguments

batch

A result from the batchoccu

new.data

a rasterstack, or a dataframe containing the same variables as the siteCovs variable in batchoccu

Value

a raster stack with predictions for each species.

Author(s)

Derek Corcoran <derek.corcoran.barrios@gmail.com>

See Also

batchoccu

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
#Load the data
data("IslandBirds")
data("Daily_Cov")
data("siteCov")
data("Birdstack")
BirdOccupancy <-batchoccu(pres = IslandBirds, sitecov = siteCov, obscov =
Daily_Cov, spp =  5, form = ~ Day + Wind + Rime + Noise + Clouds ~
Elev + AgroFo + SecVec + Wetland)

Occupancy.stack <- occupancy.predict(batch = BirdOccupancy, new.data =
Birdstack)

## End(Not run)

derek-corcoran-barrios/DiversityOccu documentation built on Nov. 12, 2019, 7:31 p.m.