tavareshugo / 2019-01-29-embl Goto Github PK
View Code? Open in Web Editor NEWInto to R - Data Carpentry course EMBL 29-31 Jan 2019
Home Page: https://tavareshugo.github.io/2019-01-29-EMBL/
License: Other
Into to R - Data Carpentry course EMBL 29-31 Jan 2019
Home Page: https://tavareshugo.github.io/2019-01-29-EMBL/
License: Other
I just noticed that the corrr
package, which is used on day 3, is not available on CRAN anymore:
https://cran.r-project.org/web/packages/corrr/index.html
How about using corrplot
instead?
Morning 1: Spreadsheets & intro to R
To make it easier for us, the exercises for the course have been compiled here.
Outline of things to cover:
read_csv()
from the beginning to simplify things? (optional, but I find it useful to keep consistency across the course)
[rows, columns]
for subset and $
to access column. For example I personally avoid showing the 4 different ways to access a column listed in the materials (usually it's quite confusing for beginners)note: extra material for ggplot2
section
So that students intuitively understand factors, introduce them in the plotting
section.
For example:
When doing this plot:
surveys_complete %>%
ggplot(aes(sex, hindfoot_length)) +
geom_boxplot()
What if we want to change the order of the x-axis labels to be "M" first?
Then we need to learn about factors, which are a special way that R has to
encode categorical variables.
Let's look at factors using a simple example first. Then go through the example
of the course materials here, but only the very first section of it.
From there, jump back to the plotting problem and resolve it:
surveys_complete %>%
mutate(sex = factor(sex, levels = c("M", "F")))
ggplot(aes(sex, hindfoot_length)) +
geom_boxplot()
Exercise 3.4 applies this concept again.
Some things to do before workshop:
Ensure software is installed in training machines (see setup instructions)
Send carpentries pre-workshop survey to participants?
Print base R
, tidyr
, dplyr
and ggplot2
cheatsheets? (here, here, here and here)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.