Skip to content

Instantly share code, notes, and snippets.

View FlicAnderson's full-sized avatar
💭
PhD student interested in Research Software @ EPCC, University of Edinburgh!

Flic Anderson FlicAnderson

💭
PhD student interested in Research Software @ EPCC, University of Edinburgh!
View GitHub Profile
@FlicAnderson
FlicAnderson / PadmeFieldRexTempCreate.SQL
Last active June 8, 2016 10:18
Query used in Padme Arabia (Access) to create temporary table before running PadmeFielRexCapacityFixQuery.SQL gist (& hence query from script_dataGrabFullLatLonOrGazLatLon_Socotra.R) to get around capacity issues with sqlQuery ODBC drivers
CREATE TABLE FieldRexTemp
(
id AUTOINCREMENT PRIMARY KEY ,
recID TEXT(10),
expdID TEXT,
collector TEXT,
collNumFull TEXT,
lnamID INTEGER,
acceptDetAs TEXT,
acceptDetNoAuth TEXT,
@nickynicolson
nickynicolson / name-reconciliation-python.ipynb
Last active February 12, 2016 16:25
Name reconciliation in Python
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@FlicAnderson
FlicAnderson / showFieldRexTempTableInfo.R
Created February 4, 2016 14:51
Show details of FieldRexTemp table information from Padme
# open test connection
source("O://CMEP\ Projects/Scriptbox/database_connections/function_TESTPadmeArabiaCon.R")
TESTPadmeArabiaCon()
# get column details for FieldRexTemp table
tableDetails <- sqlColumns(con_TESTPadmeArabia, sqtable="FieldRexTemp", errors = FALSE, as.is = TRUE,
special = FALSE, catalog = NULL, schema = NULL,
literal = FALSE)
# show relevant columns
@FlicAnderson
FlicAnderson / PadmeFielRexCapacityFixQuery.SQL
Last active June 7, 2016 16:03
Query used in Padme Arabia (Access) to add FielRex query from script_dataGrabFullLatLonOrGazLatLon_Socotra.R to get around capacity issues with sqlQuery ODBC drivers
INSERT INTO FieldRexTemp ( recID, expdID, collector, collNumFull, lnamID, acceptDetAs, acceptDetNoAuth, detAs, lat1Dir, lat1Deg, lat1Min, lat1Sec, lat1Dec, AnyLat, lon1Dir, lon1Deg, lon1Min, lon1Sec, lon1Dec, AnyLon, coordSource, coordSourcePlus, coordAccuracy, coordAccuracyUnits, dateDD, dateMM, dateYYYY, fullLocation )
SELECT
'F-' & Fiel.id AS recID,
Fiel.Expedition AS expdID,
Team.[name for display] AS collector,
Fiel.[Collector Number] AS collNumFull,
LnSy.id AS lnamID,
LnSy.[Full Name] AS acceptDetAs,
LnSy.sortName AS acceptDetNoAuth,
Lnam.[Full Name] AS detAs,
@hadley
hadley / ds-training.md
Created March 13, 2015 18:49
My advise on what you need to do to become a data scientist...

If you were to give recommendations to your "little brother/sister" on things that they need to do to become a data scientist, what would those things be?

I think the "Data Science Venn Diagram" (http://drewconway.com/zia/2013/3/26/the-data-science-venn-diagram) is a great place to start. You need three things to be a good data scientist:

  • Statistical knowledge
  • Programming/hacking skills
  • Domain expertise

Statistical knowledge

@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@perrygeo
perrygeo / cca.r
Last active September 27, 2022 15:03
Canonical Correspondence Analysis in R using the vegan library
library(vegan)
library(labdsv)
data(varespec)
data(varechem)
vare.cca <- cca(varespec ~ Baresoil+Humdepth+pH+N+P+K+Ca+Mg+S+Al+Fe, data=varechem)
vare.cca
plot(vare.cca)
summary(vare.cca)