This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function PickFile(title As String, start As String, filter As String) As String | |
| '------------------------------------------------ | |
| ' Purpose: Select file from file dialog | |
| '------------------------------------------------ | |
| Dim dlg As FileDialog | |
| Set dlg = Application.FileDialog(msoFileDialogFilePicker) | |
| With dlg | |
| .title = title | |
| .InitialFileName = start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sub csv_output() | |
| Dim rs As DAO.Recordset | |
| Dim sql As String | |
| Dim fso As Object, csv As Object | |
| Dim l As String | |
| sql = "SELECT * FROM Query3" | |
| Set rs = CurrentDb.OpenRecordset(sql) | |
| Set fso = CreateObject("Scripting.FileSystemObject") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(shiny) | |
| library(ggplot2) | |
| library(dplyr) | |
| source("helpers.R") | |
| shinyServer(function(input, output) { | |
| #READS INPUT FROM FILE | |
| inputdata <- reactive({ | |
| if(is.null(input$file)) {return()} | |
| read.csv(input$file$datapath, header = T, sep = ",", strip.white = T) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(adehabitatLT) | |
| library(ggplot2) | |
| library(data.table) | |
| data(bear) #LOADS AS CLASS LTRAJ | |
| dat <- as.data.frame(bear) | |
| ggplot(dat = dat, aes(x = date, y = R2n)) + geom_point() + geom_line() | |
| head(dat) | |
| df <- head(dat[, 1:3], 20) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Dim msg As Integer, ndow As Integer, encounter As Integer | |
| Dim sqlstring As String, capturesql As String, biometricsql As String, barcode As String | |
| Dim animalsql As String | |
| Dim ars As DAO.Recordset, crs As DAO.Recordset, recaprs As DAO.Recordset | |
| actform = Me.Name | |
| animalsql = "SELECT * FROM data_Animal ORDER BY AnimalKey;" | |
| capturesql = "SELECT EncounterID, AnimalKey, CapDate, Status, capE, capN, CapMtnRange, CapHuntUnit, CapLocDesc, " & _ | |
| "Street, City, Zip, relE, relN, RelMtnRange, RelHuntUnit, RelLocDesc, Recapture, " & _ | |
| "Relocated, ArrTime, TrTime, AmbTemp, Weather, Wind, Comments, Biologist, Biometrics, " & _ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mapPoints <- function(map, df) { | |
| df <- as.data.table(df) | |
| df <- df[complete.cases(df[, .(long_x, lat_y)])] | |
| unq_id <- unique(df$dateid) | |
| pal <- rep_len(color_pal, length(unq_id)) | |
| layers <- list() | |
| for(i in 1:length(unq_id)) { | |
| dat <- df[dateid == unq_id[i]] | |
| map <- addPolylines(map, lng = dat$long_x, lat = dat$lat_y, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| structure(list(Biologist = c("biologist1", "biologist1", "biologist1", | |
| "biologist1", "biologist1", "biologist1", "biologist1", "biologist1", | |
| "biologist1", "biologist1", "biologist1", "biologist1", "biologist1", | |
| "biologist1", "biologist1", "biologist1", "biologist1", "biologist1", | |
| "biologist1", "biologist1", "biologist1", "biologist1", "biologist1", | |
| "biologist1", "biologist1", "biologist2", "biologist2", "biologist2", | |
| "biologist2", "biologist2", "biologist2", "biologist2", "biologist2", | |
| "biologist2", "biologist2", "biologist2", "biologist2", "biologist2", | |
| "biologist2", "biologist2", "biologist2", "biologist2", "biologist2", | |
| "biologist2", "biologist2", "biologist2", "biologist2", "biologist2", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| CommonName: "Cooper's hawk", | |
| SpeciesName: "Accipiter cooperii" | |
| }, | |
| { | |
| CommonName: "northern goshawk", | |
| SpeciesName: "Accipiter gentilis" | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "CommonName": "Cooper's hawk", | |
| "SpeciesName": "Accipiter cooperii" | |
| }, | |
| { | |
| "CommonName": "northern goshawk", | |
| "SpeciesName": "Accipiter gentilis" | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var rq = { | |
| "mark_type": [ | |
| "Ear Tag", | |
| "Ear Tag", | |
| "Pit Tag" | |
| ], | |
| "mark_id": [ | |
| "123", | |
| "567", | |
| "12348981723" |