python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
rlang::parse_expr with string with escape characters
how I could use eval(rlang::parse_expr(string))’ or alternative with such expresssion string <-"print('A\s*B')"`? I am getting unrecognized escape character. The expression is evaluated ...
Daniel Borek
Votes: 0
Answers: 1
Using an rlang alternative to eval in R
In my below function, I was wondering if there is an rlang alternative to eval()?
library(rlang)
foo <- function(dat, ..., i){
dot_cols <- rlang::ensyms(...)[[1]]
subset(dat, eval(dot_c...
Simon Harmel
Votes: 0
Answers: 1
How to undo ensym and specify the environment for a function within a function?
So, I'm asking this as a follow-up to another question, to the solution to which I thought would fix all of my problems. It seems like that's not the case. Take the following setup
library(tidyverse)
...
Tea Tree
Votes: 0
Answers: 1
How to convert value to numeric and filter out NAs within function using curly curly?
I'd like to take a tibble (or dataframe), convert one of the columns to numeric, only select the same column plus a third column, and filter out NAs.
Given the following data:
library(tidyverse)
set....
Tea Tree
Votes: 0
Answers: 2