Introduction to R, Part I: Interface and Data Structures

Sdílet
Vložit
  • čas přidán 4. 06. 2024
  • MIT RES.1-002 Introduction to R and Geographical Information Systems (GIS), Fall 2023
    Instructor: Helena Vallicrosa
    View the complete course: ocw.mit.edu/courses/introduct...
    CZcams Playlist: • MIT RES.1-002 Introduc...
    Get in touch with R from scratch using R base. You will learn the basics of R interface, how to interact with the code, data types (numeric, integer, character…) and data structures (matrix, data frame, lists…), finishing with exercises.
    0:00 Why R?
    1:25 The R Interface
    3:01 Assigning Variables
    7:08 Logical Questions
    8:12 Data Types
    10:22 Vectors
    19:51 Summary Functions
    21:17 Matrices
    27:05 Data Frames
    30:06 Lists and Exercises
    License: Creative Commons BY-NC-SA
    More information at ocw.mit.edu/terms
    More courses at ocw.mit.edu
    Support OCW at ow.ly/a1If50zVRlQ
    We encourage constructive comments and discussion on OCW’s CZcams and other social media channels. Personal attacks, hate speech, trolling, and inappropriate comments are not allowed and may be removed. More details at ocw.mit.edu/comments.

Komentáře • 42

  • @sergismael
    @sergismael Před měsícem +2

    Thank you MIT

  • @Deathonthesnow
    @Deathonthesnow Před měsícem +2

    THis is great!

  • @Mindmoltivator
    @Mindmoltivator Před 12 dny

    Great

  • @B_knows_A_R_D-xh5lo
    @B_knows_A_R_D-xh5lo Před měsícem

    ❤❤❤❤ 0:15 ❤❤❤R has many advantages 0:26 0:26 🎉🎉🎉🎉🎉🎉🎉🎉

  • @Aryan37419
    @Aryan37419 Před měsícem

    Thank you man

  • @nnniiikkk7707
    @nnniiikkk7707 Před 27 dny

    Very nice video! I was wondering why the function is.integer gives back FALSE even for variables that are integer, I understand that the class of a integer variable is 'numeric' and not specifically 'integer' but I was wondering why is.integer is not as linear as I thought.

    • @djangoworldwide7925
      @djangoworldwide7925 Před 22 dny

      You might want to add L (6L) to the number so it's explicitly an integer

  • @Mastitime-qr4tj
    @Mastitime-qr4tj Před měsícem +1

    India(bihar) ❤❤❤

  • @tusheyy6033
    @tusheyy6033 Před měsícem +11

    who is Khalid35

    • @mentfib1906
      @mentfib1906 Před měsícem +6

      He invented R in 1876 after performing the first moon landing

  • @nikunjprajapati4761
    @nikunjprajapati4761 Před měsícem +9

    Letsssss gooooo

  • @ArthurSchoppenweghauer
    @ArthurSchoppenweghauer Před měsícem +2

    Ah yes, the R language.
    Good enough to do some simulations (as long as they're not too expensive), run some models, wrangle some data, create some graphs, but with all the problems of scripting languages: slow because garbage collected, runtime type checks, the interpreter keeps executing code even after running into an error in your script, weird javascript-style type coercion and really clunky dependency management. Whatever you want to build, will not attain a certain level of quality you would get from a statically typed, compiled language like C, Fortran or Rust.

    • @notme426
      @notme426 Před měsícem +3

      Yes you have just described the entire purpose of R. Who in their right mind would do any of these things in C?

    • @lightspd714
      @lightspd714 Před měsícem +1

      @@notme426 I’ve done it for fun. I would not do so for a serious work project though where time is of the essence. In that case Python, R, or Julia (which is very fast due to JIT compilation)

    • @pe3396
      @pe3396 Před dnem

      Pure cringe

  • @boltthrower142
    @boltthrower142 Před měsícem +1

    voce bellissima

    • @vorsybl
      @vorsybl Před měsícem +2

      Ngl it is pretty calm and relaxing.

  • @freeeagle6074
    @freeeagle6074 Před měsícem +1

    An awesome person.

  • @ugi612013
    @ugi612013 Před měsícem +19

    Be wise. Learn Python.

    • @B_knows_A_R_D-xh5lo
      @B_knows_A_R_D-xh5lo Před měsícem

      👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿👏🏿💯

    • @bantyrFish
      @bantyrFish Před měsícem

      why?

    • @aakashramdam7543
      @aakashramdam7543 Před měsícem

      R be like: "Mujhe kyu thoda, mujhe kyu thoda"😂😂

    • @lightspd714
      @lightspd714 Před měsícem +2

      ⁠@@bantyrFishPython is the top data science language and is also a general purpose programming language used for numerous tasks. The reality is learn both if you can.

    • @djangoworldwide7925
      @djangoworldwide7925 Před 22 dny +1

      Unfortunately, as an R programmer, I agree. Not because R is not good, but because everyone is using python.

  • @user-mm9ns1wp6v
    @user-mm9ns1wp6v Před měsícem +4

    Khalid35

  • @user-cu3of4he2m
    @user-cu3of4he2m Před měsícem +3

    Khalid35 ❤

  • @uwealex9168
    @uwealex9168 Před měsícem +2

    Julia is better ^^

    • @ellieborden6649
      @ellieborden6649 Před měsícem

      How?

    • @ArthurSchoppenweghauer
      @ArthurSchoppenweghauer Před měsícem +1

      @@ellieborden6649 JIT compiled instead of interpreted, this is supposed to improve runtime performance after the first run, although there's a compilation cost. Performance benchmarks seem to indicate it can be as fast as C, but I would take all of this with a grain of salt.

  • @narehakobyan5701
    @narehakobyan5701 Před měsícem +5

    The program screen is so small and background, that all the explanation is useless.
    The most useless video on OCW so far👎

    • @YuratAbraham
      @YuratAbraham Před měsícem +4

      I have a 15-inch laptop and looks fines

  • @facitenonvictimarum174
    @facitenonvictimarum174 Před měsícem

    Will R make my groceries affordable? -- or stop the genocide in Gaza and Ukraine?

  • @protect_trans_lives
    @protect_trans_lives Před měsícem +1

    Khalid35