Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
This file contains hidden or 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
f <- function(x) cos(x*20) | |
expi <- function(x) cos(x) + sin(x)*1i | |
par(mfrow = c(1,2)) | |
L <- 40 | |
medias_Re <- c() | |
fs <- c() | |
as <- seq(0.01, 1, l = 140) | |
animation::saveGIF({ | |
for(a in as) { |
This file contains hidden or 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
# ======================================= | |
# = Enhancements to data tidying = | |
# = Hadley Wickham = | |
# = https://rstd.io/tidyhancements-2019 = | |
# ======================================= | |
# What is tidy data? ---------------------------------------------------------- | |
# 1. Each column is a variable. | |
# 2. Each row is an observation. | |
# 3. Each cell is a value. |
This file contains hidden or 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
--- | |
title: "The Best Tacos in Austin according to Caitlin Hudon" | |
output: | |
flexdashboard::flex_dashboard: | |
orientation: column | |
vertical_layout: fill | |
--- | |
```{r setup, include=FALSE} | |
library(flexdashboard) |
This file contains hidden or 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
upper <- seq(0, pi, length.out = 181)[-181] | |
upper <-cbind(x = cos(upper), y = sin(upper)) | |
lower <- seq(pi, 2*pi, length.out = 181)[-181] | |
lower <- cbind(x = cos(lower), y = sin(lower)) | |
right <- seq(1.5*pi, 2.5*pi, length.out = 181)[-181] | |
right <- cbind(x = cos(right), y = sin(right)) | |
left <- seq(0.5*pi, 1.5*pi, length.out = 181)[-181] | |
left <- cbind(x = cos(left), y = sin(left)) | |
full <- cbind(x = cos(seq(0, 2*pi, length.out = 361)[-361]), | |
y = sin(seq(0, 2*pi, length.out = 361)[-361])) |
This file contains hidden or 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(tidyverse) | |
# Colliders | |
x1 <- rnorm(1000) | |
y <- 1.2 + 1.6 * x1 + rnorm(1000) | |
z <- 0.6 + 1.3*x1 + 1.5*y + rnorm(1000) |
![screenshot][]
In the following we will be using R’s “restarts” feature to implement the state machine that drives generators in languages such as Python. Generators allow lazily generating values on demand: a consumer invokes a generator, and consumes values as they are produced. A new value is only produced once the previous one has been consumed.
This file contains hidden or 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
import asyncio | |
import json | |
import aiohttp | |
SCHOOL_URL_FMT = 'http://educacao.dadosabertosbr.com/api/escola/{}' | |
SEARCH_SCHOOL_URL = ( | |
'http://educacao.dadosabertosbr.com/api/escolas/buscaavancada?' | |
'situacaoFuncionamento=1&energiaInexistente=on&aguaInexistente=on&' |
This file contains hidden or 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
Curva Cód. | |
AJUSTE CUPOM ACC | |
AÇÚCAR CRISTAL ACF | |
ALUMÍNIO(US$) ALD | |
ALUMÍNIO(R$) ALR | |
ALUMÍNIO(US$) MD AMD | |
ALUMÍNIO(R$) MD AMR | |
DI X ANBID AN | |
ANBID X PRÉ ANP | |
AJUSTE PRÉ APR |
NewerOlder