Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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(spocc) | |
> spp <- c("Myricaria germanica") | |
> dat <- occ(query = spp, from = "gbif", gbifopts = list(georeferenced = TRUE)) | |
> dat | |
Summary of results - occurrences found for: | |
gbif : 25 records across 1 species | |
bison : 0 records across 1 species | |
inat : 0 records across 1 species | |
ebird : 0 records across 1 species | |
ecoengine : 0 records across 1 species |
This file contains 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
# file: jpeg_transparency.R | |
# purpose: add transparency to jpeg | |
# author: kay cichini | |
# arguments: path_to_jpeg, path_to_outfile, alpha (transparency 0-1) | |
# path_to_outfile defaults to default home directory | |
# alpha defaults to 0.5 | |
# packages used: jpeg, png | |
# input: a jpeg image | |
# output: a png image |
This file contains 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
source_tBB <- function(file) { | |
# read theBioBucket-scripts using a security certificate | |
u <- paste("https://raw.github.com/gimoya/theBioBucket-Archives/master/R/", file, sep = "") | |
script <- getURL(u, followlocation = TRUE, | |
cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl")) | |
# parse lines and evaluate in the global environement | |
eval(parse(text = script), envir= .GlobalEnv) | |
} |
This file contains 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
fun_install_github <- function (repo = "theBioBucket-Archives", | |
username = "gimoya", | |
branch = "master") | |
{require(RCurl) | |
message("\nInstalling ", repo, " R-functions from user ", username) | |
name <- paste(username, "-", repo, sep = "") | |
url <- paste("https://github.com/", username, "/", repo, | |
sep = "") | |
zip_url <- paste("https://nodeload.github.com/", username, | |
"/", repo, "/zipball/", branch, sep = "") |
This file contains 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
google_ss <- function(gid = NA, key = NA) | |
{ | |
if (is.na(gid)) {stop("\nWorksheetnumber (gid) is missing\n")} | |
if (is.na(key)) {stop("\nDocumentkey (key) is missing\n")} | |
require(RCurl) | |
url <- getURL(paste("https://docs.google.com/spreadsheet/pub?key=", key, | |
"&single=true&gid=", gid, "&output=csv", sep = ""), | |
cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl")) | |
read.csv(textConnection(url), header = T, sep = ",") | |
} |
This file contains 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
id | age | tolerance | male | exposure | time | |
---|---|---|---|---|---|---|
9 | 11 | 2.23 | 0 | 1.54 | 0 | |
9 | 12 | 1.79 | 0 | 1.54 | 1 | |
9 | 13 | 1.9000000000000001 | 0 | 1.54 | 2 | |
9 | 14 | 2.12 | 0 | 1.54 | 3 | |
9 | 15 | 2.66 | 0 | 1.54 | 4 | |
45 | 11 | 1.12 | 1 | 1.16 | 0 | |
45 | 12 | 1.45 | 1 | 1.16 | 1 | |
45 | 13 | 1.45 | 1 | 1.16 | 2 | |
45 | 14 | 1.45 | 1 | 1.16 | 3 |
This file contains 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
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~; | |
; -> Kommentar | |
; Erläuterung Syntax: | |
; ::vegl:: vor Abk. -> sobald 'vegl' UND ',' oder '.' oder ' ' getippt wird, wird Wort vervollständigt | |
; :*:UW:: -> sobald 'UW' oder 'uw' getippt wird, wird 'UNTERWUCHS' oder 'Unterwuchs' vervollständigt | |
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~; | |
::UW::Unterwuchs | |
::SS::Strauchschicht |
This file contains 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
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>OpenLayers Bergfex Topo Layer</title> | |
<link rel="stylesheet" href="qgis.css" type="text/css"> | |
<script src="OpenLayers.js"></script> | |
<script src="OlOverviewMarker.js"></script> | |
<script type="text/javascript"> | |
var map; | |
var loadEnd; | |
var oloMarker; // OpenLayer Overview Marker |
This file contains 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
/** | |
* Author: Yihui Xie | |
* URL: http://yihui.name/en/2010/09/syntaxhighlighter-brush-for-the-r-language | |
* License: GPL-2 | GPL-3 | |
*/ | |
SyntaxHighlighter.brushes.R = function() | |
{ | |
var keywords = 'if else repeat while function for in next break TRUE FALSE NULL Inf NaN NA NA_integer_ NA_real_ NA_complex_ NA_character_'; | |
var constants = 'LETTERS letters month.abb month.name pi'; | |
this.regexList = [ |
OlderNewer