Skip to content

Instantly share code, notes, and snippets.

@alharry
Last active February 14, 2018 04:56
Show Gist options
  • Save alharry/4105199 to your computer and use it in GitHub Desktop.
Save alharry/4105199 to your computer and use it in GitHub Desktop.
Load example data
###############################################################################
# 20/01/2013
# Author: Alastair V Harry - alastair.harry@gmail.com
# Centre For Sustainable Tropical Fisheries & Aquaculture
# James Cook University, Townsville
#
# From Harry et al (2013) Age, growth, and reproductive biology of the spot-tail
# shark, Carcharhinus sorrah, and the Australian blacktip shark, C. tilstoni,
# from the Great Barrier Reef World Heritage Area, north-eastern Australia.
# Marine and Freshwater Research
#
# Loads data for the spot-tail shark from the paper above
###############################################################################
library(RCurl)
# Load data from github
url <- "https://raw.githubusercontent.com/alharry/spot-tail/master/SSS.csv"
data <- getURL(url)
# If this step doesnt work use this, but read this first
# http://ademar.name/blog/2006/04/curl-ssl-certificate-problem-v.html
#data <- getURL(url,ssl.verifypeer = FALSE)
data <- read.csv(textConnection(data))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment