forked from quantitativeconservationlab/AppPopnEco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CountDataPrep.R
21 lines (17 loc) · 968 Bytes
/
CountDataPrep.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#######################################################################
#######################################################################
#### This script was created by Dr. Jen Cruz as part of ########
#### the Applied Population Ecology Class #######
#### ########
#### Their abundance is influenced by drought, low temperatures when ##
#### they emerge from hibernation in Feb and high temperatures in April-May #
#work out new site ID for count sites:
c.sites <- occdf$o.sites[ occdf$orgID %in% keepc ]
#work out new site ID for mark sites:
m.sites <- occdf$o.sites[ occdf$orgID %in% keepm ]
#create sf dataframe to store our point count data:
countdf <- st_sf( c.sites = c.sites, geometry = st_sfc( sitesIc ) )
#create sf dataframe to store our trapping data:
markdf <- st_sf( m.sites = m.sites, geometry = st_sfc( sitesIm ) )
#check
head( countdf ); head( markdf )