Getting started with R: Basic Arithmetic and Coding in R | R Tutorial 1.3 | MarinStatsLectures



Getting started with R: Basic Arithmetic and Coding in R; Learn how to turn R software into a fancy calculator! To learn how to Install & Setup R and RStudio watch this Video Tutorial: ( ); 👍🏼Best Statistics & R Programming Language Tutorials: ( )

►► Like to support us? You can Donate ( Share our Videos, Leave us a Comment and Give us a Like or Write us a Review! Either way We Thank You!

In this R video tutorial, we learn how to assign values to objects in R, how to turn R into a fancy calculator and perform basic arithmetic functions (+, -, *, /) in R, and more.

In this R video tutorial, you will learn:

►How to assign values to object is R using the equal sign (=) or less than sign with dash
►How to use ls function to see the data stored in R
► How to use rm function to remove an object in R
►How to add, subtract, multiply, and divide in R
► How to use sqrt function in R to find the square root of an object
► How to use log function in R to calculate logarithms
► How to use exp function in R to take the exponent or anti-log
► How to use abs function in R to calculate the absolute value
► and a few handy keyboard shortcuts in R

►►Watch More:

► Intro to Statistics Course:
►R Tutorials for Data Science
►Getting Started with R (Series 1):
►Graphs and Descriptive Statistics in R (Series 2):
►Probability distributions in R (Series 3):
►Bivariate analysis in R (Series 4):
►Linear Regression in R (Series 5):
►ANOVA Concept and with R Series
►Linear Regression Concept and with R Series

◼︎ Table of Content:

0:00:20 How to assign values to an object in R
0:01:46 How to see what is stored in R? We use “ls” function to see what is stored in R
0:01:57 How to remove an object in R? We use “rm” functions to remove an object in R
0:02:52 How to assign values to objects in R
0:03:37 How to do basic arithmetic in R
0:04:50 How to take the square root of an object in R
0:05:07 How to use the “log” function in R
0:05:12 How to take the exponent or anti-log in R ? we use the “exp” function to take the exponent or anti-log in R
0:05:30 How to calculate the absolute value in R? we use the “abs” function to calculate the absolute value in R
0:06:14 a few handy keyboard shortcuts in R
0:06:41 Including comments and notes to self within codes in R

This video is a tutorial for programming in R Statistical Software for beginners, using R Studio.

Follow MarinStatsLectures

Subscribe:
website:
Facebook:
Twitter:
Instagram:

Our Team:
Content Creator: Mike Marin (B.Sc., MSc.) Senior Instructor at UBC.
Producer and Creative Manager: Ladan Hamadani (B.Sc., BA., MPH)

These videos are created by #marinstatslectures to support some courses at The University of British Columbia (UBC) (#IntroductoryStatistics and #RVideoTutorials for Health Science Research), although we make all videos available to the everyone everywhere for free.

Thanks for watching! Have fun and remember that statistics is almost as beautiful as a unicorn!

source

46 Comments

  1. 👋🏼 Hello there! In this R video Mike shows how to assign values to objects in R, remove objects from R and turn R into a fancy calculator with simple codes and functions. Wanna see how these arithmetic functions work on vectors and matrices in R? watch https://youtu.be/2TcPAZOyV0U -If Like to support us you can Donate (https://bit.ly/2CWxnP2), Share our Videos, Leave us a Comment and Give us a Like 👍🏼 ! Either way We Thank You!

  2. I have watched the entire series and will state categorically that these are some of the best videos to start learning R. Marin uses base R and introduces the student slowly and systematically step-by-step into R rather then racing a light speed into pipes and the tidyverse. His videos prepared me for more advanced work in R.

  3. Is this beginners tutorial playlist still relevant with r today, or have there not been any changes? I am starting grad school and wanted to get a head before class starts.

  4. You explain very well… understood everything … thank you for explaining it so easily … I have my practical tomorrow, just have a small doubt … The last thing which you have told in this video that we can use the # sign nd write notes to remember wht we wrote in the code, i want to ask wht’s the significance of that like we can’t call it if we want right? so is it just for our understanding that if we scroll up nd see that command so reading that note below that command we can just get to know wht that code was for … is it just for that?

  5. hello sir, there is a shortcut which you said in one of the videos to look up to all the variable names created. I am not able to find it. please let me know

  6. Trying to grasp it, but got lost immediately. Your first task states that you are going to assign a value to an object. What object? Is the object something already created or am I creating it now? Is it a stand alone object (to be used by itself) or is it a object that is part of something else (and can only be used in totality?) This may say it is for "Beginners" but what do I need to be pre-beginning? I am an older individual trying to finally learn coding for something I have published on close to 30 years ago.

  7. Great video and teaching skills Mike!
    Also ask Ladan "salam chetori? khoobi?"
    If you're into classical music, check out my channel and make yourself at home.
    Just subscribed.
    Greetings from Hamburg, Germany.

Leave a Reply

Your email address will not be published. Required fields are marked *

You might like

© 2026 Cantinho do Vídeo - WordPress Video Theme by WPEnjoy