r-glue Questions

3

Solved

I want to create a function that takes up as the first argument the name of a data set, and as a second argument, part of a column's name from the dataframe. I then want to use glue to dynamically ...
Corporeal asked 29/5 at 8:8

1

Solved

Consider the following Rmarkdown document: --- title: "Environments" author: "Me" date: "2023-01-13" output: html_document --- ```{r setup} library(glue) library(purr...
Solfeggio asked 13/1, 2023 at 10:15

3

Solved

Here's some silly data that we pivot wider, using two names: library(tidyr) df <- data.frame( food = c('banana','banana','banana','banana','cheese','cheese','cheese','cheese'), binary = c(rep...
Measureless asked 29/9, 2020 at 1:14

2

Solved

Is that possible to use ggplotly() or datatable() in RMarkdown from inside a for loop or function? Example: --- title: "Using `ggplotly` and `DT` from a `for` loop in Rmarkdown" output: h...
Marseillaise asked 14/3, 2020 at 17:51
1

© 2022 - 2024 — McMap. All rights reserved.