Week3 Cheat Sheet Exploratory Data Analysis
Week3 Cheat Sheet Exploratory Data Analysis
.data
.data
A data frame, data frame
extension (e.g. a tibble), or a sub_airline %>%
group_by(.data, ..., .add =
lazy data frame group_by(Reporting_Airline)
group_by() FALSE, .drop =
%>% summarize(mean_delays =
group_by_drop_default(.data))
.add mean(ArrDelayMinutes))
When FALSE, the default,
group_by() will override
existing groups.
.drop
Drop groups formed by factor
levels that don’t appear in the
data
cor() cor(x, use=, method= ) cor function computes the sub_airline %>%
correlation coefficient select(DepDelayMinutes,
ArrDelayMinutes) %>%
cor(method = "pearson")
x: Matrix or data frame
…
scale_fill_manual(values =
common discrete scale c("#d53e4f", "#f46d43",
scale_fill_manual() scale_fill_manual(..., values) parameters: name, breaks, "#fdae61", "#fee08b",
labels, na.value, limits and "#e6f598", "#abdda4"))
guide. See discrete_scale for
more details
Author(s)
Lakshmi Holla
Changelog
Date Version Changed by Change Description
2023-05-11 1.1 Eric Hao & Vladislav Boyko Updated Page Frames
2021-08-09 1.0 Lakshmi Holla Initial Version