Example.R
example.RcarlisleraineyFri Feb 15 05:56:04 2019# R scrip to illustrate CA1# load packageslibrary(tidyverse)## ── Attaching packages ───────────────────────────────────────────────────────────────────────────── tidyverse 1.2.1 ──## ? ggplot2 3.0.0 ? purrr 0.2.5## ? tibble 1.4.2 ? dplyr 0.7.6## ? tidyr 0.8.1 ? stringr 1.3.1## ? readr 1.1.1 ? forcats 0.3.0## ── Conflicts ──────────────────────────────────────────────────────────────────────────────── tidyverse_conflicts() ──## ? dplyr::filter() masks stats::filter()## ? dplyr::lag() masks stats::lag()# load datadf <- read_rds("parties.rds")# quick lookglimpse(df)## Observations: 555## Variables: 10## $ country <chr> "Albania", "Albania", "Albania", "Argenti...## $ year <dbl> 1992, 1996, 1997, 1946, 1951, 1954, 1958,...## $ average_magnitude <dbl> 1.00, 1.00, 1.00, 10.53, 10.53, 4.56, 8.1...## $ eneg <dbl> 1.106929, 1.106929, 1.106929, 1.342102, 1...## $ enep <dbl> 2.190, 2.785, 2.870, 5.750, 1.970, 1.930,...## $ upper_tier <dbl> 28.57, 17.86, 25.80, 0.00, 0.00, 0.00, 0....## $ en_pres <dbl> 0.00, 0.00, 0.00, 2.09, 1.96, 1.96, 2.65,...## $ proximity <dbl> 0.00, 0.00, 0.00, 1.00, 1.00, 0.20, 1.00,...## $ social_heterogeneity <fct> Bottom 3rd of ENEG, Bottom 3rd of ENEG, B...## $ electoral_system <fct> Single-Member District, Single-Member Dis...# plotggplot(df, aes(x = electoral_system, y = enep)) + geom_violin()# observation 1: Just write your observations at the bottom of the script like# this. If you want to "reflow" a script so that each line is the proper length# without having to many enter the line breaks, just highlght the comment, and# click *Code > Reflow Comment*. You'll get nice, equally-size lines, like # these.# observation 2: ...# observation 3: ... ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- uvod srce sveučilišni računski centar sveučilišta
- eda project
- module 3 examples r code
- project 2 fin 654 spring 1 2018
- data wrangling r with answers
- fishing dashboard improving the reporting of data on
- data wrangling r california state university east bay
- install a few packages that are required github pages
- part 1 functional form of mage with dplyr
Related searches
- dod 7000.14 r vol 12 ch 7
- dod fmr 7000.14 r vol 8
- dod 7000.14 r volume 2a
- dod 7000.14 r volume 7a 2018
- dod 7000.14 r 2019
- dod 7000.14 r volume 9
- dod 7000.14 r volume 6
- dodfmr 7000.14 r vol 5
- dod fmr 7000.14 r volume 5
- statistically significant correlation r value
- dod fmr 7000.14 r volume 8
- dod 7000.14 r volume 2a chapter 1