R Tutorial For Absolute Beginners [2021]

Поділитися
Вставка
  • Опубліковано 19 чер 2024
  • Welcome to my R tutorial for absolute beginners :-)
    My main programming language is Python but I had to do some R while graduating and meanwhile I am really enthusiastic about this language and already did some projects with it.
    A lot of quantitative trading strategies but also ML algorithms/ Data Science / Data Analysis Projects are written in R and you don't want to miss out at least having a basic understanding of the language.
    I can only recommend to have a look and write some programs in it no matter if you are interested in Finance , Data Analysis or Data Science!
    I hope with this tutorial I can give you an overview of the - in my perception - most important basics so that you can start out writing some programs in it.
    Let me know your thoughts or questions in the comments below.
    How to install R and Rstudio:
    courses.edx.org/courses/UTAus...
    Is Python better than R?
    www.ibm.com/cloud/blog/python...
    Example csv from:
    people.sc.fsu.edu/~jburkardt/...
    More background on how recursive functions are working (but in Python) check my first video:
    • RECURSION in Python - ...
    0:00 - 02:06 Intro / Why and when learn R?
    02:06 - 02:50 Rstudio Code Execution
    02:50 - 03:45 Variable assignment
    03:45 - 05:56 Datatypes
    05:56 - 07:26 Arithmetic Operators
    07:26 - 08:59 Relational Operators
    08:59 - 10:04 Sequences
    10:04 - 12:05 Vectors
    12:05 - 14:48 Matrices
    14:48 - 17:48 Vector/Matrix Indexing
    17:48 - 19:09 Lists (storing different types of data)
    19:09 - 20:55 DataFrames
    20:55 - 23:04 Reading in csv files and useful features of DataFrames
    23:04 - 28:09 Conditional Statements (If / else if / else)
    28:09 - 29:54 For Loop
    29:54 - 31:13 While Loop
    31:13 - 34:07 Functions
    34:07 - 36:03 Recursive function (Factorial)
    36:03 - 39:13 Fizzbuzz in R
    #R #Rprogramming #Rtutorial

КОМЕНТАРІ • 107

  • @Algovibes
    @Algovibes  Рік тому +1

    Hi everyone,
    thanks a lot for watching. Want to have this tutorial without ads or just want to show your appreciation for this video? Then please follow this link: www.udemy.com/course/r-programming-crash-course/?referralCode=830DD50000E7A7BEA528
    Thanks a lot 🙂

  • @JK-ls8kh
    @JK-ls8kh Рік тому +10

    this is literally my last-minute tutorial for my next job interview. Thank you so much.

  • @aryantnigam2246
    @aryantnigam2246 2 роки тому +6

    what our teacher taught in 40 days u did it in 40 mins truly commendable job

    • @Algovibes
      @Algovibes  2 роки тому +1

      lol thank you :D To defend your teacher he was probably going more into details tho

  • @elizabethbattley1507
    @elizabethbattley1507 2 роки тому +4

    Mate I just want to say that this is one of the best videos I have seen on learning the basic of R. It is my first time trying to learn it for my master project and it has been a pleasure to watch. Very informative and easy to follow so thank you so much for taking the time to make it. Can't put into words how much this has helped me and has put me on my way to complete my masters! Amazing work

    • @Algovibes
      @Algovibes  2 роки тому +1

      Thank you so much Elizabeth. That's incredibly awesome to read!

  • @jeanfrancoiskolyonivogui9204
    @jeanfrancoiskolyonivogui9204 2 роки тому +3

    Great job man! You are the best teacher of this thing out there! Hands down!

    • @Algovibes
      @Algovibes  2 роки тому

      Thank you for your kind words buddy. I really appreciate them :-)

  • @kokoninja2169
    @kokoninja2169 Рік тому +3

    This was a pretty cool tutorial! Short and sweet! Moreover, it was really easy to follow! I enjoyed it very much! Thank you for providing this tutorial!

  • @mvr192
    @mvr192 Рік тому +3

    Thank you, this helped a lot to kickstart understanding R.

    • @Algovibes
      @Algovibes  Рік тому

      Awesome to read, thx a lot for your comment!

  • @lexmurden5221
    @lexmurden5221 Рік тому +1

    This is very good. It lays quite a solid foundation to build upon. This helped me. Thank you!

    • @Algovibes
      @Algovibes  Рік тому

      Great to read. Thanks a ton for for your comment :-)

  • @ibrahimdiiriye5248
    @ibrahimdiiriye5248 2 роки тому +4

    This video taught me a lot, appreciate your work well done👍.

    • @Algovibes
      @Algovibes  2 роки тому

      Awesome, thanks a lot Ibrahim.

  • @josecp
    @josecp Рік тому +1

    Thanks a lot for the video, very good explanation. It helped me a lot

  • @alaakhashoun8092
    @alaakhashoun8092 Рік тому +1

    AMAZING WORK, THANK YOUU!!

  • @adarshsaurkar7707
    @adarshsaurkar7707 2 роки тому +3

    Thank you so much ...this was so good....may god bless you for making such content

    • @Algovibes
      @Algovibes  2 роки тому

      Thank you very much for your feedback and your kind words ❤️

  • @pratiksikdar5183
    @pratiksikdar5183 2 роки тому +1

    I am very new to this Programming Language, your teaching really helped me a lot!

    • @Algovibes
      @Algovibes  2 роки тому

      Hi Pratik,
      that's awesome to read. Thanks a lot!

  • @ahmedjou7220
    @ahmedjou7220 2 роки тому +4

    Hello,
    Thank you very much for all your efforts, it is greatly appreciated.
    I'm glad to see that you teach people about R as well.
    Indeed I've been working as a R shiny developer for several months and I master it quite well.
    I wonder if it's not possible to reproduce everything you did on algo trading with binance APIs on an R environment? I am quite pessimistic about this because Binance provides all the doc on python...
    Do you have any Idea ?
    Thank you again!

    • @Algovibes
      @Algovibes  2 роки тому +1

      Thanks man. Well go ahead and write a R wrapper :D But on a serious note: There are just way more Python libs solving different problems. R is an awesome language but the transition towards Python is possible and doable. In that case Python just has more possibilities if you don't want to code from scratch.

  • @ugurresulcan270
    @ugurresulcan270 3 місяці тому +1

    Top notch work! Appreciatie it!

  • @achiengpauline5693
    @achiengpauline5693 2 роки тому +1

    Thanks alot, just what i needed as a beginner.

    • @Algovibes
      @Algovibes  2 роки тому

      Awesome. Thanks for watching Achieng!

  • @lucashenriquefleischmann6014
    @lucashenriquefleischmann6014 2 роки тому +1

    Really good, thank you man!

    • @Algovibes
      @Algovibes  2 роки тому

      Hey man, thanks a lot!

  • @tawichsimon9515
    @tawichsimon9515 2 роки тому +3

    Thanks so much for the very educative lesson

    • @Algovibes
      @Algovibes  2 роки тому

      Thanks for watching man :-)

  • @lukechiwala2123
    @lukechiwala2123 Рік тому +2

    Am very interested to learn R and this video is just simple to follow. I can pose, go to R and try out. Its perfect to get a result. I can talk to my computer. Thank you

    • @Algovibes
      @Algovibes  Рік тому

      Awesome Luke! Thanks for your feedback.

  • @mariocivil7901
    @mariocivil7901 Рік тому +1

    Very useful!!! Thanks and keep it up!!!

  • @gusinthecloud
    @gusinthecloud Рік тому +1

    excellent tutorial as always!!

  • @kiyalight94
    @kiyalight94 Рік тому +1

    Very very helpful. Thank you so much.

    • @Algovibes
      @Algovibes  Рік тому +1

      Thanks a lot Birhan, great to read!

  • @toluolaleye2778
    @toluolaleye2778 10 місяців тому +1

    On point. Thank you.

  • @IndigoIndustrial
    @IndigoIndustrial Рік тому +2

    Great tutorial for beginners.

    • @Algovibes
      @Algovibes  Рік тому

      Awesome to read, thx a lot!

  • @shreesha2677
    @shreesha2677 2 роки тому +2

    thanks dude it was very useful

    • @Algovibes
      @Algovibes  2 роки тому

      That's great to read. Thanks a lot for watching :-)

  • @fatoukabre5897
    @fatoukabre5897 2 роки тому +2

    I am a newbie as well, and really appreciate your effort in breaking things down. I am just mimicking the course along, and somehow, I don't seem to find the right directory to import my csv file. My file is stored in a folder on my desktop. How do I import it into R studio and continue working?
    Thank you for the help.

    • @Algovibes
      @Algovibes  2 роки тому

      Hi Fatou, thanks a lot. Just read in the csv and provide the file path in parentheses.

  • @vineetsansi
    @vineetsansi Рік тому +1

    Hi just came across your channel & watched 3,4 videos of yours.
    I started with python for Data Science but moved to R in a year & fell in love with the way R & shiny can play with the data and so never felt like going back to python again but:
    1. In India no (hardly any) company want to use R because its mostly a software/service industry here. R is mostly used in Research/academics so this backfired on me.
    2. I am looking to practice some trading & saw your Python videos on same. Is there any advantage in any language when it comes to Stock market or trading ?? (R has quantmod, tidyquant etc. packages which I know about but does python have any edge over them ?)

    • @Algovibes
      @Algovibes  Рік тому +1

      I think R is absolutely great as well but I strongly prefer Python. There is a demand for R in quant finance / academics but the standard language in Data Science is Python - worldwide.
      If you are good in R you can transfer the knowledge to Python quite easily.

    • @vineetsansi
      @vineetsansi Рік тому

      @@Algovibes Yes I agree with you. I can code in both but my preference has been R so far and may be I need to change that. Thanks !!

  • @bernardoramirez8009
    @bernardoramirez8009 Рік тому +1

    Awesome video. Thanks

  • @diponker
    @diponker Рік тому +1

    Thank you brother.

    • @Algovibes
      @Algovibes  Рік тому

      Welcome :-) Thanks for watching!

  • @mihretabsolomongebru6916
    @mihretabsolomongebru6916 2 роки тому +1

    Thank you :)

    • @Algovibes
      @Algovibes  2 роки тому

      Thank YOU for watching :-)

  • @mangeshw9766
    @mangeshw9766 2 роки тому +3

    Thanks bro god bless 🌷,,,,,Can u make one vedio on Fibonacci level with EMA moving average that generates buy and sell signal.......plz

  • @jessicaescobar7549
    @jessicaescobar7549 2 роки тому +1

    Thank you very helpful..

    • @Algovibes
      @Algovibes  2 роки тому

      Welcome Jessica! Happy to read :-)

  • @md.sadathassan2407
    @md.sadathassan2407 Рік тому +1

    amazing sir

    • @Algovibes
      @Algovibes  Рік тому

      Thx a lot for watching :-)

  • @mrzidane2635
    @mrzidane2635 Рік тому +1

    Thank you so much

    • @Algovibes
      @Algovibes  Рік тому

      Welcome :-) Thx for watching!

  • @aligbane8938
    @aligbane8938 2 роки тому +2

    Hello, professor
    I would like to know if you did a video about how to use penguins dataset who can help need to do this problem.
    Using the penguins dataset, generate a histogram for flipper
    length. Calculate the mean, median, variance, standard
    deviation, and Q1 and Q3 of the flipper length variable.
    Determine the 90th percentile of the flipper length variable
    and calculate the Z-score for a penguin who has a flipper of
    length 220 mm.

    • @Algovibes
      @Algovibes  2 роки тому +1

      How much time do you have left? :D

  • @shifasirguroh732
    @shifasirguroh732 2 роки тому +1

    thankyou so much

    • @Algovibes
      @Algovibes  2 роки тому

      Thanks for watching :-)

  • @Kig_Ama
    @Kig_Ama 2 роки тому +1

    Ty for uploading. Allow me question. Why should one learn R, if we have Python and all the Python stat modules sklearn and so on? As far as I understand, everyone is using Python nowadays and if we don't have the time to learn another programming language, shouldn't we use Python?

    • @Kig_Ama
      @Kig_Ama 2 роки тому +1

      Oh ok, I've just seen u already worked on that topic.

    • @Algovibes
      @Algovibes  2 роки тому +1

      Hi man, thanks a lot for watching. Yea, you should just focus on one first. You can quite easily scale to other programming languages once you really got the fluency. There is actually a lot of R code in academics, finance and Data Science industry so it is worth it to give it a shot.

    • @Kig_Ama
      @Kig_Ama 2 роки тому

      @@Algovibes Ty, appreciate your work very much, great content. Allow me another question. R u interested in doing some videos about model validation in Python?

  • @cryptolicious3738
    @cryptolicious3738 2 роки тому +1

    great video

  • @itslemonhead
    @itslemonhead 2 роки тому +1

    thank you

    • @Algovibes
      @Algovibes  2 роки тому

      Welcome mate. Thanks for watching :-)

  • @kathleenjohnston3582
    @kathleenjohnston3582 2 роки тому +1

    I have to learn this for research, I am struggling so much. I am hopeful though🙏

    • @Algovibes
      @Algovibes  2 роки тому

      Thanks a lot and I keep my fingers crossed for you :P

  • @vishnuvijay5647
    @vishnuvijay5647 2 роки тому +1

    did martin and lisa repaid the money? if yes, put the other ones in the example :D

  • @mdjuneid3553
    @mdjuneid3553 2 роки тому +1

    Can you please make a video on how to use bitmex api and make a bot 🤖

  • @anjalibesoya9609
    @anjalibesoya9609 Рік тому

    After installing R studio, it shows that "do you want this app to make changes to your device". I tried clicking on both yes and no but it's not opening. What to do? Could you please help.

  • @ThinkBeFree99
    @ThinkBeFree99 2 роки тому +1

    Do i need to know software development / coding to use this?

    • @Algovibes
      @Algovibes  2 роки тому

      Nope. Not at all. R is very straightforward.

  • @Kig_Ama
    @Kig_Ama 2 роки тому +1

    4:10 Where can I download the Datatypes.R file?

    • @Algovibes
      @Algovibes  2 роки тому +1

      It is just the name of the R script file, I named it like this.

    • @Kig_Ama
      @Kig_Ama 2 роки тому +1

      @@Algovibes Got it, ty. :)

  • @atiyakhan7397
    @atiyakhan7397 Рік тому +1

    I need help with my assignment

  • @Niphiz
    @Niphiz 2 роки тому +1

    Can a kind person explain to me wtf is the factorial?? I can't understand how e.g. (5-1)*5 = 120 and not 20. Apparently there is something else to it, but I can't figure it out. isn't the code as simple as that?

    • @Algovibes
      @Algovibes  2 роки тому

      I will be the kind person then :D
      Please first check out this video:
      ua-cam.com/video/Q9hg547tkMA/v-deo.html
      I am explaining Recursion step by step there.
      If you still didn't get it please let me know, I am happy to help!

    • @Niphiz
      @Niphiz 2 роки тому +1

      ​@@Algovibes Thanks a lot for replying! Ok, I got the mathematical term, but I just can't understand how the code loops. Except if the part of "return function(n-1)" is the trigger for the loop?

    • @Algovibes
      @Algovibes  2 роки тому

      @@Niphiz Jep, the function is just called again. There is not a loop. You just call the function for every step. So if you pull the factorial of 3, you are calling the function for factorial 2 and then factorial 1.
      I am going through every iteration in the video. Please just watch it as boring as it might be :D

    • @Niphiz
      @Niphiz 2 роки тому +2

      @@Algovibes it wasn't boring actually, I just had to watch it 2-3 times until I realised the working! Even though I won't need it right now but for the lols of it (I'm a marine biology undergrad, so learning R for biostatistical stuff and various lab works)

  • @mustafanawaz4499
    @mustafanawaz4499 Рік тому

    I am unable to open csv file on r studio.

  • @khoatruong91
    @khoatruong91 2 роки тому

    how to empty my environment? It does not look empty like in your video

    • @Algovibes
      @Algovibes  2 роки тому

      Could you elaborate on which environment you are referring to?

  • @na533ma
    @na533ma Рік тому +1

    This greatly helped but did anyone else get distracted by the mouth smacking, swallowing saliva noise?

    • @Algovibes
      @Algovibes  Рік тому

      lol :D Sorry. I think I put my mic on too sensitive there. I would be quite thankful and check out one of my newer videos and check if the sound improved. Thx in advance!

  • @pianothatilove
    @pianothatilove Рік тому +1

    There is no doubt that you are knowledgeable when it comes to R code but your ability to create content so that other people can use it for learning purposes is non existent. You are all over the place when going through this.

    • @Algovibes
      @Algovibes  Рік тому

      That's devastating feedback, sad to read 😔
      Any suggestions for improvement?

    • @pianothatilove
      @pianothatilove Рік тому +1

      @@Algovibes promise to get back to you on this one

    • @mattyork1973
      @mattyork1973 7 місяців тому

      I very nearly skipped this video because of this comment, but it was really clearly laid out and I learnt a lot. Not sure where this comment came from. Hope you don’t stop making videos.

  • @atiyakhan7397
    @atiyakhan7397 Рік тому +1

    I need help with my assignment