R Programming - Data Frames

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

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

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

    To Get Certification, Click Here: bit.ly/3WkArvx
    Use coupon "RUclips12" to get ‘’FLAT 12%’’ OFF at Checkout.

  • @My-ToolKit
    @My-ToolKit 5 лет назад +6

    What type of teaching style is this,just reading the slides.we can also read

  • @neetidixit7616
    @neetidixit7616 5 лет назад +3

    Whats is StringsAsfactors=False for ?

    • @quytranquang6105
      @quytranquang6105 4 года назад +5

      In summary, strings are read by default as factors (i.e. distinct groups). This has two consequences:
      Your data is stored more efficiently, because each unique string gets a number and whenever it's used in your data frame you can store its numerical value (which is much smaller in size)
      Factors are set when the data-frame is created (or file loaded). Only stings present at that time will become factors. If you try and assign any other value to that column, and it's not in the list of factor strings, you'll get an error. The good thing is this prevents entering wrong data into a set data frame, the downside is it's very annoying when you want to alter data frames.(There are ways to add or change factors, but it's often cumbersome)
      In short, use stringAsFactors = F if you're planning to change the type of strings you're going to use in your data frame. If the data will not be changed.

  • @upasanaacharya7400
    @upasanaacharya7400 2 года назад

    This is amazing

  • @biswajitbiswal4593
    @biswajitbiswal4593 3 года назад

    is stringasfactors is necessary

  • @niharikasarma7479
    @niharikasarma7479 2 года назад

    That is amazing

  • @Kore9308-m1m
    @Kore9308-m1m 3 года назад

    Why we write stringAsFactors=False? Please explain it

    • @upasanaacharya7400
      @upasanaacharya7400 2 года назад

      The argument 'stringsAsFactors' is an argument to the 'data. frame ()' function in R. It is a logical that indicates whether strings in a data frame should be treated as factor variables or as just plain strings.

  • @kirannyaddav559
    @kirannyaddav559 3 года назад +1

    explaining nothing