Draw Histogram & Density for Each Column of Data Frame in R (3 Examples) | ggplot2 & tidyr Packages

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

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

  • @BobBeatski71
    @BobBeatski71 2 года назад +1

    Very nicely explained, Joachim.
    I have a data frame that has 4000+ rows and 20+ columns. 18 of the columns contain readings for each of the 18 sensor nodes in the product. The headers (for those 18) are labelled n1..n18
    Is there a way I can programmatically refer to a cell on row x by reference to the column name ?
    Something like value

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

      Found answers to my questions:
      %>% select(Time, n1:n18) gives me test time and the columns of interest.
      Link:- ruclips.net/video/tSVX8-NZ9OI/видео.html "Environmental science with Dr Lisa"

    • @StatisticsGlobe
      @StatisticsGlobe  2 года назад +1

      Hey Bob, thanks a lot for the kind words! Personally, I would extract all the columns you want to plot to a new data frame. I think this is a matter of taste, though.