Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Pachamaltese pachamaltese

🎯
Focusing
Block or report user

Report or block pachamaltese

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View example.R
x1 = cm[,1]
n <- length(x1)
x1[(x1 != sort(x1,partial=n-1)[n-1]) & (x1 != sort(x1,partial=n-2)[n-2]) & (x1 != sort(x1,partial=n-3)[n-3])] <- 0
@pachamaltese
pachamaltese / download_and_or_load.R
Created Oct 12, 2016
Automatically downloads and/or load the libraries for your Rmds/R scripts
View download_and_or_load.R
download_and_or_load <- function(x){
y <- x[!(x %in% installed.packages()[, "Package"])]
if (length(y))
install.packages(y, dependencies = TRUE)
sapply(x, require, character.only = TRUE)
}
my_libraries <- c("ggplot2", "dplyr", "purrr")
download_and_or_load(my_libraries)
View chl_chn_2014_6char.json
[
{
"year": 2014,
"group": "Animal and Vegetable Bi-Products",
"product_id": "031504",
"product": "Fish Oil",
"group_id": "03",
"import_val": 25302351.67,
"export_val": 1190604.86,
"trade_exchange_val": 26492956.53,
@pachamaltese
pachamaltese / es_transcript.md
Last active Dec 18, 2016
Beta & Bit spanish translation
View es_transcript.md

Page 1

Las aventuras de Beta y Bit ¿Cómo medir un perro con una regla?

Bit, quien es un un fanático de los robots, las computadoras, y la programación, se transforma en SuperBit al enfrentarse a nuevos desafíos.

El superpoder de Bit es buscar datos. Beta, a quien le apasionan las matemáticas, el ajedrez y los buenos libros, se transforma en SuperBeta al enfrentarse a nuevos desafíos.

@pachamaltese
pachamaltese / index.html
Last active Dec 24, 2016
Grupo 3 - Clasificación Internacional de Situación en el Empleo Abreviada según Sexo
View index.html
<!doctype html>
<meta charset="utf-8">
<script src="//d3plus.org/js/d3.js"></script>
<script src="//d3plus.org/js/d3plus.js"></script>
<div id="viz"></div>
<script>
@pachamaltese
pachamaltese / index.html
Last active Dec 24, 2016
Grupo 3 - Horas promedio de trabajo no remunerado por sexo
View index.html
<!doctype html>
<meta charset="utf-8">
<script src="//d3plus.org/js/d3.js"></script>
<script src="//d3plus.org/js/d3plus.js"></script>
<div id="viz"></div>
<script>
@pachamaltese
pachamaltese / .block
Last active Dec 26, 2016
Ejemplo de Treemap en D3Plus
View .block
license: mit
@pachamaltese
pachamaltese / README.md
Last active Dec 26, 2016
Otro ejemplo de Treemap con D3Plus
View README.md

license: gpl-3.0

este es un ejemplo de como ejecutar D3Plus directamente desde un gist

@pachamaltese
pachamaltese / index.html
Last active Dec 26, 2016
Ejemplo de Red con D3Plus 2
View index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script src="https://d3plus.org/js/d3plus-network.v0.1.full.min.js"></script>
<style>
@pachamaltese
pachamaltese / index.html
Created Dec 26, 2016
Grupo 5 - Groserías no consideradas en Reservoir Dogs
View index.html
<!doctype html>
<meta charset='utf-8'>
<script src="//d3plus.org/js/d3.js"></script>
<script src="//d3plus.org/js/d3plus.js"></script>
<div id='tree_map'></div>
<script>
var swearwords = [
{
"word": "apeshit",
"freq": 1,
You can’t perform that action at this time.