Add Variable Labels to Data Frame in R (Example) | Assign Text to Column | Hmisc & labelled Packages

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024

ความคิดเห็น • 10

  • @hassanhijazi4757
    @hassanhijazi4757 9 หลายเดือนก่อน

    Thank you Joachim. Could you please explain what purpose does the labelling serve.In what context it is usually used?

    • @Ifeanyi.StatisticsGlobe
      @Ifeanyi.StatisticsGlobe 8 หลายเดือนก่อน

      Hello, Hassan. We apologize for the late response to your question. Do you still need help with it?

  • @forrestoakley4882
    @forrestoakley4882 ปีที่แล้ว

    Thank you! Very useful.

  • @KarolKarasiewicz
    @KarolKarasiewicz 5 หลายเดือนก่อน +1

    Does 'ggplot2' use this labels e.g. in axwallis titles? Is there any difference on the package?

    • @StatisticsGlobe
      @StatisticsGlobe  5 หลายเดือนก่อน +1

      Hey Karol, by default ggplot2 uses the column names of your data frame (not the labels). You may check this using this code:
      library("ggplot2")
      ggplot(data1, aes(x1, x3)) +
      geom_point()

    • @KarolKarasiewicz
      @KarolKarasiewicz 5 หลายเดือนก่อน +1

      @@StatisticsGlobe thanks for Your answer. I asked this question Gemini by Google and it recommended 'ggeasy' package and this works :-) surprisingly

    • @StatisticsGlobe
      @StatisticsGlobe  5 หลายเดือนก่อน

      OK great, thanks for sharing! :)

  • @santosh6148
    @santosh6148 ปีที่แล้ว

    Nice