Skip to content

Commit

Permalink
annotation edits
Browse files Browse the repository at this point in the history
  • Loading branch information
vjjan91 committed Sep 8, 2023
1 parent 817fd72 commit d13ef06
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions 03_eBird-data-processing.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ readcleanrawdata = function(rawpath)
preimp = c("COMMON.NAME","OBSERVATION.COUNT",
"LOCALITY.ID","LOCALITY.TYPE", "STATE", "COUNTRY",
"LATITUDE","LONGITUDE","OBSERVATION.DATE","TIME.OBSERVATIONS.STARTED","OBSERVER.ID",
"PROTOCOL.TYPE","DURATION.MINUTES","EFFORT.DISTANCE.KM", "REVIEWED",
"NUMBER.OBSERVERS","ALL.SPECIES.REPORTED","GROUP.IDENTIFIER","SAMPLING.EVENT.IDENTIFIER","APPROVED","CATEGORY")
"LATITUDE","LONGITUDE","OBSERVATION.DATE",
"TIME.OBSERVATIONS.STARTED","OBSERVER.ID",
"PROTOCOL.TYPE","DURATION.MINUTES","EFFORT.DISTANCE.KM",
"REVIEWED","NUMBER.OBSERVERS","ALL.SPECIES.REPORTED",
"GROUP.IDENTIFIER","SAMPLING.EVENT.IDENTIFIER","APPROVED",
"CATEGORY")
nms = read.delim(rawpath, nrows = 1, sep = "\t", header = T, quote = "", stringsAsFactors = F, na.strings = c(""," ",NA))
nms = names(nms)
Expand All @@ -42,9 +45,12 @@ readcleanrawdata = function(rawpath)
imp = c("COMMON.NAME","OBSERVATION.COUNT",
"LOCALITY.ID","LOCALITY.TYPE", "STATE", "COUNTRY",
"LATITUDE","LONGITUDE","OBSERVATION.DATE","TIME.OBSERVATIONS.STARTED","OBSERVER.ID",
"PROTOCOL.TYPE","DURATION.MINUTES","EFFORT.DISTANCE.KM", "SAMPLING.EVENT.IDENTIFIER",
"NUMBER.OBSERVERS","ALL.SPECIES.REPORTED","group.id", "CATEGORY","no.sp")
"LATITUDE","LONGITUDE","OBSERVATION.DATE",
"TIME.OBSERVATIONS.STARTED","OBSERVER.ID",
"PROTOCOL.TYPE","DURATION.MINUTES","EFFORT.DISTANCE.KM",
"SAMPLING.EVENT.IDENTIFIER",
"NUMBER.OBSERVERS","ALL.SPECIES.REPORTED","group.id",
"CATEGORY","no.sp")
days = c(31,28,31,30,31,30,31,31,30,31,30,31)
cdays = c(0,31,59,90,120,151,181,212,243,273,304,334)
Expand Down

0 comments on commit d13ef06

Please sign in to comment.