-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathT1.Rmd
56 lines (44 loc) · 753 Bytes
/
T1.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
title: "R Notebook"
output: html_notebook
---
# T1 - First Talk
```{r}
library(skimr)
library(dplyr)
skim(iris)
```
```{r}
install.packages("ISLR")
```
```{r}
library(ISLR)
OJ %>%
skim()
```
```{r}
skim(OJ) # differentiates variables by class
```
```{r}
skim(dplyr::starwars) # built in support for strings, lists and other column classes
```
```{r}
skim(OJ) %>%
summary() # summary function
```
```{r}
skim(OJ, Purchase, PriceCH) # individual columns can be selected using tidyverse-style selectors
```
```{r}
OJ %>%
dplyr::group_by(Purchase) %>%
skim() # handles grouped data
```
```{r}
skim(iris) # PRINTS HORIZONTALLY
```
```{r}
my_skim <- skim_with(numeric = sfl(mad))
my_skim(iris, Sepal.Length)
# skim__with function
```