Skip to content

Instantly share code, notes, and snippets.

library(tidyverse)
df <- read_csv('nobel.csv')
dfyear <- read_csv('nobel-years.csv')
df %>%
left_join(dfyear) %>%
mutate(
is_nobel_year = year == prize_year,
label = sprintf("%d: %s", prize_year, name)
---
title: Adat a könyvtárban
type: slide
slideOptions:
transition: slide
theme: white
---
# <div style="border-bottom: 1px solid cornflowerblue; margin: 5px">Adat a könyvtárban</div>
Király Péter (GWDG, Göttingen)
original:
myPMCID <- function(x) {
if (x == "None") {
PMCID <- "None"
} else {
taxize_summ <- entrez_summary(db="pubmed", id=x)
PMC <- data.frame(taxize_summ$articleids)
PMC_ID <- grep("pmc-id:", PMC$value, value=TRUE)

Proposal: Formatting rules for code snippets in Code4Lib articles

1. Embedding code snippets:

[sourcecode]
...
[/sourcecode]
@pkiraly
pkiraly / following-siblings.json
Created September 2, 2014 13:22
Example of following-siblings.json call
{
"apikey": "xxxxxxxx",
"action": "following-siblings.json",
"success": true,
"statsDuration": 2248,
"requestNumber": 7326,
"self": {
"id": "/9200300/BibliographicResource_3000051829073",
"title": {
"def": [