Displaying 5 results from an estimated 5 matches for "new_col_name".
2017 Mar 17
4
RFC: (in-principle) native unquoting for standard evaluation
...--
searching didn't turn up much) on the possibility of supporting standard
evaluation unquoting at the language level. This has been brought up in a
recent similar thread here [1] and on Twitter [2] where I proposed the
following desired (in-principle) syntax
f <- function(col1, col2, new_col_name) {
mtcars %>% mutate(@new_col_name = @col1 + @col2)
}
or closer to home
x <- 1:10; y <- "x"
data.frame(z = @y)
where @ would be defined as a unary prefix operator which substitutes the
quoted variable name in-place, to allow more flexibility of NSE function...
2017 Mar 19
3
RFC: (in-principle) native unquoting for standard evaluation
...sibility of supporting standard
> > evaluation unquoting at the language level. This has been brought up in a
> > recent similar thread here [1] and on Twitter [2] where I proposed the
> > following desired (in-principle) syntax
> >
> > f <- function(col1, col2, new_col_name) {
> > mtcars %>% mutate(@new_col_name = @col1 + @col2)
> > }
> >
> > or closer to home
> >
> > x <- 1:10; y <- "x"
> > data.frame(z = @y)
> >
> > where @ would be defined as a unary prefix operator which s...
2017 Mar 17
2
RFC: (in-principle) native unquoting for standard evaluation
...--
searching didn't turn up much) on the possibility of supporting standard
evaluation unquoting at the language level. This has been brought up in a
recent similar thread here [1] and on Twitter [2] where I proposed the
following desired (in-principle) syntax
f <- function(col1, col2, new_col_name) {
mtcars %>% mutate(@new_col_name = @col1 + @col2)
}
or closer to home
x <- 1:10; y <- "x"
data.frame(z = @y)
where @ would be defined as a unary prefix operator which substitutes the
quoted variable name in-place, to allow more flexibility of NSE function...
2017 Mar 17
0
RFC: (in-principle) native unquoting for standard evaluation
...turn up much) on the possibility of supporting standard
> evaluation unquoting at the language level. This has been brought up in a
> recent similar thread here [1] and on Twitter [2] where I proposed the
> following desired (in-principle) syntax
>
> f <- function(col1, col2, new_col_name) {
> mtcars %>% mutate(@new_col_name = @col1 + @col2)
> }
>
> or closer to home
>
> x <- 1:10; y <- "x"
> data.frame(z = @y)
>
> where @ would be defined as a unary prefix operator which substitutes the
> quoted variable name in-p...
2017 Mar 19
0
RFC: (in-principle) native unquoting for standard evaluation
...t;> > evaluation unquoting at the language level. This has been brought up in
>> > a
>> > recent similar thread here [1] and on Twitter [2] where I proposed the
>> > following desired (in-principle) syntax
>> >
>> > f <- function(col1, col2, new_col_name) {
>> > mtcars %>% mutate(@new_col_name = @col1 + @col2)
>> > }
>> >
>> > or closer to home
>> >
>> > x <- 1:10; y <- "x"
>> > data.frame(z = @y)
>> >
>> > where @ would be define...