R tutorial - Subsetting your Vectors in R

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024

Комментарии • 13

  • @F11550i
    @F11550i 4 года назад +1

    It is great, that you cover every exceptions in this course , like in 4:35 .... it was exactly what i was thinking

  • @harvindersingh-xb2pz
    @harvindersingh-xb2pz 6 лет назад +3

    Can we have more videos from this guy he is so good !

  • @karamatrash6065
    @karamatrash6065 4 года назад +1

    The videos are very helpful, we want more!
    THANK YOU VERY MUCH!!!

  • @elijahmachimbo2635
    @elijahmachimbo2635 Год назад

    Supper good

  • @MrDp297
    @MrDp297 6 лет назад

    I am curious.....why does R perform recycling when the vector used to subset is smaller than the length of the original vector.....but not in the case where we use for example [1] (which is also a vector of length 1 that could potentially be recycled to give all the elements of the original vector...but it only gives the first)???.. or does that apply to logical vectors only?

  • @fawadqasimi3817
    @fawadqasimi3817 7 лет назад

    great videos thanks for awesome explain

  • @maharshichakraborty3530
    @maharshichakraborty3530 7 лет назад

    If remain is already a vector that uses 'c' to concatenate the elements, why do I need to use c again in remain_black

    • @maharshichakraborty3530
      @maharshichakraborty3530 7 лет назад

      Is it because I need to concatenate 1,4 using c as well?

    • @nadaelhawary3763
      @nadaelhawary3763 7 лет назад +3

      I realize that you 4 months have passed ,but if anyone is still wondering:
      the value between the square brackets is expecting a vector of one of three kinds:
      1) the index of the vector element (1 , 2 , 3 , 4 ....etc)
      2) the names of a named vector
      3) logical (TRUE , FALSE) values corresponding to the number of elements in the vector
      if you want to create a vector of length 1 ( if you want to choose just one element) you don't need c() since a vector of length 1 doesn't have any combined data so vector_name[ 1 ] will work , however if you would want to choose 1,2, and 3 you need to combine the values (just like vector creation) ,so you will do vector_name[ c(1 , 2 , 3)]
      now something not mentioned in the video is if you want to have successive elements ( 1,2,3 or 4,5,6,7 ) you can use a shortcut of vector_name[1:3] or [4:6] ...etc using this shortcut doesn't require the c() because R understands what you want to do and acts as if you ran vector_name[ c(1,2,,4)]

  • @vedhashringaamk8169
    @vedhashringaamk8169 5 лет назад

    where could i get the exercise questions??

  • @fikilemkhize5776
    @fikilemkhize5776 5 лет назад

    CAN YOU GET CERTIFICATION FOR R IN YOUR COURSE?

  • @jaishreesingh564
    @jaishreesingh564 5 лет назад

    provid the statistics video in R tools

  • @jaishreesingh564
    @jaishreesingh564 5 лет назад

    i am student for statistics