In today's video we'll cover how to use the ifelse() function in R. This function is the exact same as the IF statement / function in Excel. It takes in a condition or inequality and then has you specify something if it is TRUE and something else if it is FALSE. Towards the end I will cover an example where you want to test for an if statement and do something if it is TRUE however you want to do nothing if it is FALSE. As a hint, you can't leave the TRUE or FALSE part of the function blank.
I even use a fun example of a birthday party with go-karts.
Welcome to the "Introduction to R" video series. If you found this video helpful, be sure to check out all the other R videos in the playlist.
• R Programming
Quant t-shirts, mugs, and hoodies:
teespring.com/stores/fancy-quant
Connect with me:
/ dimitri-bianco
/ dimitribianco
☕ Show Your Support and Buy Me a Coffee ☕
https://ko-fi.com/fancyquant
On this page of the site you can watch the video online ifelse() Function in R (E18) with a duration of hours minute second in good quality, which was uploaded by the user Dimitri Bianco 09 January 2021, share the link with friends and acquaintances, this video has already been watched 3,258 times on youtube and it was liked by 41 viewers. Enjoy your viewing!