The Notes for Professionals book is compiled from Stack Overflow Documentation, the content is written by the beautiful people at Stack Overflow. Text content is released under Creative Commons BY-SA. See credits at the end of this book whom contributed to the various chapters. Images may be copyright of their respective owners unless otherwise specified
Book created for educational purposes and is not affiliated with group(s), company(s) nor Stack Overflow. All trademarks belong to their respective company owners
https://goalkicker.com/
章節目錄
1-1
Content list
1-2
About
1-3
Chapter 1: Getting started with R Language
1-4
Section 1.1: Installing R
1-5
Section 1.2: Hello World!
1-6
Section 1.3: Getting Help
1-7
Section 1.4: Interactive mode and R scripts
1-8
Chapter 2: Variables
1-9
Section 2.1: Variables, data structures and basic Operations
1-10
Chapter 3: Arithmetic Operators
1-11
Section 3.1: Range and addition
1-12
Section 3.2: Addition and subtraction
1-13
Chapter 4: Matrices
1-14
Section 4.1: Creating matrices
1-15
Chapter 5: Formula
1-16
Section 5.1: The basics of formula
1-17
Chapter 6: Reading and writing strings
1-18
Section 6.1: Printing and displaying strings
1-19
Section 6.2: Capture output of operating system command
1-20
Section 6.3: Reading from or writing to a file connection
1-21
Chapter 7: String manipulation with stringi package
1-22
Section 7.1: Count pattern inside string
1-23
Section 7.2: Duplicating strings
1-24
Section 7.3: Paste vectors
1-25
Section 7.4: Splitting text by some fixed pattern
1-26
Chapter 8: Classes
1-27
Section 8.1: Inspect classes
1-28
Section 8.2: Vectors and lists
1-29
Section 8.3: Vectors
1-30
Chapter 9: Lists
1-31
Section 9.1: Introduction to lists
1-32
Section 9.2: Quick Introduction to Lists
1-33
Section 9.3: Serialization: using lists to pass information
1-34
Chapter 10: Hashmaps
1-35
Section 10.1: Environments as hash maps
1-36
Section 10.2: package:hash
1-37
Section 10.3: package:listenv
1-38
Chapter 11: Creating vectors
1-39
Section 11.1: Vectors from build in constants: Sequences of letters & month names
1-40
Section 11.2: Creating named vectors
1-41
Section 11.3: Sequence of numbers
1-42
Section 11.4: seq()
1-43
Section 11.5: Vectors
1-44
Section 11.6: Expanding a vector with the rep() function
1-45
Chapter 12: Date and Time
1-46
Section 12.1: Current Date and Time
1-47
Section 12.2: Go to the End of the Month
1-48
Section 12.3: Go to First Day of the Month
1-49
Section 12.4: Move a date a number of months consistently by months
1-50
Chapter 13: The Date class
1-51
Section 13.1: Formatting Dates
1-52
Section 13.2: Parsing Strings into Date Objects
1-53
Section 13.3: Dates
1-54
Chapter 14: Date-time classes (POSIXct and POSIXlt)
1-55
Section 14.1: Formatting and printing date-time objects
1-56
Section 14.2: Date-time arithmetic
1-57
Section 14.3: Parsing strings into date-time objects
1-58
Chapter 15: The character class
1-59
Section 15.1: Coercion
1-60
Chapter 16: Numeric classes and storage modes
1-61
Section 16.1: Numeric
1-62
Chapter 17: The logical class
1-63
Section 17.1: Logical operators
1-64
Section 17.2: Coercion
1-65
Section 17.3: Interpretation of NAs
1-66
Chapter 18: Data frames
1-67
Section 18.1: Create an empty data.frame
1-68
Section 18.2: Subsetting rows and columns from a data frame
1-69
Section 18.3: Convenience functions to manipulate data.frames
1-70
Section 18.4: Introduction
1-71
Section 18.5: Convert all columns of a data.frame to character class
1-72
Chapter 19: Split function
1-73
Section 19.1: Using split in the split-apply-combine paradigm
1-74
Section 19.2: Basic usage of split
1-75
Chapter 20: Reading and writing tabular data in plain-text files (CSV, TSV, etc.)
1-76
Section 20.1: Importing .csv files
1-77
Section 20.2: Importing with data.table
1-78
Section 20.3: Exporting .csv files
1-79
Section 20.4: Import multiple csv files
1-80
Section 20.5: Importing fixed-width files
1-81
Chapter 21: Pipe operators (%>% and others)
1-82
Section 21.1: Basic use and chaining
1-83
Section 21.2: Functional sequences
1-84
Section 21.3: Assignment with %<>%
1-85
Section 21.4: Exposing contents with %$%
1-86
Section 21.5: Creating side eects with %T>%
1-87
Section 21.6: Using the pipe with dplyr and ggplot2
1-88
Chapter 22: Linear Models (Regression)
1-89
Section 22.1: Linear regression on the mtcars dataset
1-90
Section 22.2: Using the 'predict' function
1-91
Section 22.3: Weighting
1-92
Section 22.4: Checking for nonlinearity with polynomial regression
1-93
Section 22.5: Plotting The Regression (base)
1-94
Section 22.6: Quality assessment
1-95
Chapter 23: data.table
1-96
Section 23.1: Creating a data.table
1-97
Section 23.2: Special symbols in data.table
1-98
Section 23.3: Adding and modifying columns
1-99
Section 23.4: Writing code compatible with both data.frame and data.table
1-100
Section 23.5: Setting keys in data.table
1-101
Chapter 24: Pivot and unpivot with data.table
1-102
Section 24.1: Pivot and unpivot tabular data with data.table - I
1-103
Section 24.2: Pivot and unpivot tabular data with data.table - II
1-104
Chapter 25: Bar Chart
1-105
Section 25.1: barplot() function
1-106
Chapter 26: Base Plotting
1-107
Section 26.1: Density plot
1-108
Section 26.2: Combining Plots
1-109
Section 26.3: Getting Started with R_Plots
1-110
Section 26.4: Basic Plot
1-111
Section 26.5: Histograms
1-112
Section 26.6: Matplot
1-113
Section 26.7: Empirical Cumulative Distribution Function
1-114
Chapter 27: boxplot
1-115
Section 27.1: Create a box-and-whisker plot with boxplot() {graphics}
1-116
Section 27.2: Additional boxplot style parameters
1-117
Chapter 28: ggplot2
1-118
Section 28.1: Displaying multiple plots
1-119
Section 28.2: Prepare your data for plotting
1-120
Section 28.3: Add horizontal and vertical lines to plot
1-121
Section 28.4: Scatter Plots
1-122
Section 28.5: Produce basic plots with qplot
1-123
Section 28.6: Vertical and Horizontal Bar Chart
1-124
Section 28.7: Violin plot
1-125
Chapter 29: Factors
1-126
Section 29.1: Consolidating Factor Levels with a List
1-127
Section 29.2: Basic creation of factors
1-128
Section 29.3: Changing and reordering factors
1-129
Section 29.4: Rebuilding factors from zero
1-130
Chapter 30: Pattern Matching and Replacement
1-131
Section 30.1: Finding Matches
1-132
Section 30.2: Single and Global match
1-133
Section 30.3: Making substitutions
1-134
Section 30.4: Find matches in big data sets
1-135
Chapter 31: Run-length encoding
1-136
Section 31.1: Run-length Encoding with `rle`
1-137
Section 31.2: Identifying and grouping by runs in base R
1-138
Section 31.3: Run-length encoding to compress and decompress vectors
1-139
Section 31.4: Identifying and grouping by runs in data.table
1-140
Chapter 32: Speeding up tough-to-vectorize code
1-141
Section 32.1: Speeding tough-to-vectorize for loops with Rcpp
1-142
Section 32.2: Speeding tough-to-vectorize for loops by byte compiling
1-143
Chapter 33: Introduction to Geographical Maps
1-144
Section 33.1: Basic map-making with map() from the package maps
1-145
Section 33.2: 50 State Maps and Advanced Choropleths with Google Viz
1-146
Section 33.3: Interactive plotly maps
1-147
Section 33.4: Making Dynamic HTML Maps with Leaflet
1-148
Section 33.5: Dynamic Leaflet maps in Shiny applications
1-149
Chapter 34: Set operations
1-150
Section 34.1: Set operators for pairs of vectors
1-151
Section 34.2: Cartesian or "cross" products of vectors
1-152
Section 34.3: Set membership for vectors
1-153
Section 34.4: Make unique / drop duplicates / select distinct elements from a vector
1-154
Section 34.5: Measuring set overlaps / Venn diagrams for vectors