Using the R glue package to embed variable values in ggplot2 figures (CC085)

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

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

  • @Riffomonas
    @Riffomonas  3 года назад +2

    How much do you work with strings in R? Is this something you would like to learn more about? Let me know what you struggle with!

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

      I am just now seeing your question here, if you are still monitoring it at all. I will however answer. I delve into stringr and regex on occasion. It is not something I use every day, even though it is so extremely useful in data cleaning. Remembering regex is and will always be problematic. Regex is harder than organic chemistry which is no piece of cake!

  • @niceday2015
    @niceday2015 2 года назад +3

    library(glue)
    a = "Thank you"
    b = "Pat"
    glue ('{a} {b}, A GREAT Mentor ')

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

      🤓 ah gee whiz. Thanks!

  • @TheusinDoDeboche
    @TheusinDoDeboche 2 года назад +2

    Thank you for this content, I am learning a lot with your videos!!!!!

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

      Wonderful - thanks for watching!

  • @sitendugoswami1990
    @sitendugoswami1990 3 года назад +2

    excellent tip! I This will definitely come handy for my thesis.

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

      Wonderful! Glad you got something out of the video

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

    Pat - I think glue is not part of tidyverse core packages but has to be loaded separately.

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

    A nifty tip! Thanks!

  • @latanezimbardo7129
    @latanezimbardo7129 9 месяцев назад

    I still prefer using paste for the task described, glue approach has more cons (dependency) than pros (readability). Though I have used glue in a more useful way, e.g. putting R variables into SQL chunk

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

    C'mon. Tell us how you **really** feel about PCoA. ;)
    Another great video! Looking forward to trying out glue.

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

      Well considering one of my top watched videos shows how to make stacked bar charts maybe I need be more ranty 😂