Uploaded February 2021 | Updated November 2026, 2 hours ago
This is lesson 26 of a 30-part introduction to the R programming language for data analysis and predictive modeling. Link to the code notebook below:
Intro to R: ANOVA
kaggle.com/hamelg/intro-to-r-part-26-ANOVA
This lesson covers the ANOVA test for comparing whether the mean of a numeric variable differs depending on the value one a categorical variable. This lesson covers one-way ANOVA tests for comparing across a single categorical variable, and two-way ANOVA tests for comparing across two categorical variables and their interactions.
This guide does not assume any prior exposure to R, programming or data science. It is intended for beginners with an interest in data science and those who might know other programming languages and would like to learn R.
I will create the videos for this guide such that you should be able to learn a lot just watching on YouTube, but to get the most out of the guide, it is recommended that you create a Kaggle account so that you can fork and edit each lesson so that you can follow along and run code yourself.
Introduction to R Playlist:
youtube.com/playlist?list=PLiC1doDIe9rDjk9tSOIUZJU4s5NpEyYtE
This is lesson 26 of a 30-part introduction to the R programming language for data analysis and predictive modeling. Link to the code notebook below:
Intro to R: ANOVA
kaggle.com/hamelg/intro-to-r-part-26-ANOVA
This lesson covers the ANOVA test for comparing whether the mean of a numeric variable differs depending on the value one a categorical variable. This lesson covers one-way ANOVA tests for comparing across a single categorical variable, and two-way ANOVA tests for comparing across two categorical variables and their interactions.
This guide does not assume any prior exposure to R, programming or data science. It is intended for beginners with an interest in data science and those who might know other programming languages and would like to learn R.
I will create the videos for this guide such that you should be able to learn a lot just watching on YouTube, but to get the most out of the guide, it is recommended that you create a Kaggle account so that you can fork and edit each lesson so that you can follow along and run code yourself.
Introduction to R Playlist:
youtube.com/playlist?list=PLiC1doDIe9rDjk9tSOIUZJU4s5NpEyYtE










![Python Regex: How To Split a String On Multiple Characters
↓ Code Available Below! ↓
This video shows how to split a string of text based on multiple characters at the same time using the regular expressions package in Python. Splitting strings into parts, often into different words, is a common text processing operation but the base Python split function only splits on a single separator, so if your words are separated by several characters it might not get you what you need. The re.split() function allows you to split on a regular expression pattern, so you can split on multiple characters at the same time.
If you find this video useful, like, share and subscribe to support the channel!
► Subscribe: https://www.youtube.com/c/DataDaft?sub_confirmation=1
Code used in this Python Code Clip:
import re
lines = Some-files_have+different.characters as|separators
# Default python split works on a single character
lines.split()
# Use re.split() to split on several different characters
re.split(pattern = r[ |.+ ],
string = lines)
* Note: YouTube does not allow greater than or less than symbols in the text description, so the code above will not be exactly the same as the code shown in the video! I will use Unicode large < and > symbols in place of the standard sized ones. .
⭐ Kite is a free AI-powered coding assistant that integrates with popular editors and IDEs to give you smart code completions and docs while you’re typing. It is a cool application of machine learning that can also help you code faster! Check it out here: https://www.kite.com/get-kite/?utm_medium=referral&utm_source=youtube&utm_campaign=datadaft&utm_content=description-only Python Regex: How To Split a String On Multiple Characters](https://i.ytimg.com/vi/JIEmM87RlT8/mqdefault.jpg)