Introduction to R, Part I: Interface and Data Structures

Поділитися
Вставка
  • Опубліковано 12 тра 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...
    UA-cam 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 UA-cam 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.

КОМЕНТАРІ • 38

  • @sergismael
    @sergismael 16 днів тому +2

    Thank you MIT

  • @Deathonthesnow
    @Deathonthesnow 17 днів тому +1

    THis is great!

  • @nnniiikkk7707
    @nnniiikkk7707 5 днів тому

    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.

  • @B_knows_A_R_D-xh5lo
    @B_knows_A_R_D-xh5lo 13 днів тому

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

  • @Aryan37419
    @Aryan37419 12 днів тому

    Thank you man

  • @tusheyy6033
    @tusheyy6033 17 днів тому +11

    who is Khalid35

    • @mentfib1906
      @mentfib1906 17 днів тому +7

      He invented R in 1876 after performing the first moon landing

  • @Mastitime-qr4tj
    @Mastitime-qr4tj 17 днів тому

    India(bihar) ❤❤❤

  • @nikunjprajapati4761
    @nikunjprajapati4761 17 днів тому +9

    Letsssss gooooo

  • @ArthurSchoppenweghauer
    @ArthurSchoppenweghauer 16 днів тому +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 10 днів тому +2

      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 10 днів тому +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)

  • @freeeagle6074
    @freeeagle6074 17 днів тому +1

    An awesome person.

  • @boltthrower142
    @boltthrower142 17 днів тому +1

    voce bellissima

    • @vorsybl
      @vorsybl 17 днів тому +2

      Ngl it is pretty calm and relaxing.

  • @user-mm9ns1wp6v
    @user-mm9ns1wp6v 17 днів тому +4

    Khalid35

  • @uwealex9168
    @uwealex9168 17 днів тому +2

    Julia is better ^^

    • @ellieborden6649
      @ellieborden6649 17 днів тому

      How?

    • @ArthurSchoppenweghauer
      @ArthurSchoppenweghauer 16 днів тому +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.

  • @user-cu3of4he2m
    @user-cu3of4he2m 17 днів тому +3

    Khalid35 ❤

  • @ugi612013
    @ugi612013 17 днів тому +18

    Be wise. Learn Python.

    • @B_knows_A_R_D-xh5lo
      @B_knows_A_R_D-xh5lo 13 днів тому

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

    • @bantyrFish
      @bantyrFish 10 днів тому

      why?

    • @aakashramdam7543
      @aakashramdam7543 10 днів тому

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

    • @lightspd714
      @lightspd714 10 днів тому +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.

  • @facitenonvictimarum174
    @facitenonvictimarum174 13 днів тому

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

  • @narehakobyan5701
    @narehakobyan5701 17 днів тому +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 16 днів тому +4

      I have a 15-inch laptop and looks fines

  • @protect_trans_lives
    @protect_trans_lives 17 днів тому +1

    Khalid35