Skip to content

Instantly share code, notes, and snippets.

View Bustami's full-sized avatar
🏠
Working at home

Ismael Gómez Schmidt Bustami

🏠
Working at home
View GitHub Profile
@Bustami
Bustami / input.Rnw
Created February 5, 2016 22:59 — forked from yihui/input.Rnw
use knitr (knit2pdf) to generate a PDF report in a Shiny app
\documentclass{article}
\begin{document}
<<names>>=
input$firstname
input$lastname
@
\end{document}
@Bustami
Bustami / geonames-city-coord.R
Created February 24, 2016 03:31 — forked from andybega/geonames-city-coord.R
Look up coordinates for city names
library(geonames)
# list of city names (in Afghanistan)
cities <- c("Gereshk", "Lashkar Gah", "Marjah", "Nad-e Ali")
-5L), class = "data.frame")
# conveninence function to look up and format results
GNsearchAF <- function(x) {
res <- GNsearch(name=x, country="AF")
return(res[1, ])
}