search for: deparsedots

Displaying 4 results from an estimated 4 matches for "deparsedots".

2018 Feb 20
0
deparseDots to get names of all arguments?
On 21/02/18 11:36, Spencer Graves wrote: > Hi, All: > > > ????? How can I get the names of all the arguments in dots(...)? > > > ????? I'm able to get the name of the first argument but not the second: > > > > deparseDots <- function(...){ > ? deparse(substitute(...)) > } > a <- 1 > b <- 2 > deparseDots(a, b) > [1] "a" > > > ????? I'd like to get c('a', 'b'). Does names(list(...)) do what you want? cheers, Rolf -- Technical Editor ANZJ...
2018 Feb 20
5
deparseDots to get names of all arguments?
Hi, All: ????? How can I get the names of all the arguments in dots(...)? ????? I'm able to get the name of the first argument but not the second: deparseDots <- function(...){ ? deparse(substitute(...)) } a <- 1 b <- 2 deparseDots(a, b) [1] "a" ????? I'd like to get c('a', 'b'). ????? Thanks, ????? Spencer Graves > sessionInfo() R version 3.4.3 (2017-11-30) Platform: x86_64-apple-darwin15.6.0 (64-bit)...
2018 Feb 21
1
deparseDots to get names of all arguments?
...> On 21/02/18 11:36, Spencer Graves wrote: >> Hi, All: >> >> >> ????? How can I get the names of all the arguments in dots(...)? >> >> >> ????? I'm able to get the name of the first argument but not the second: >> >> >> >> deparseDots <- function(...){ >> ? deparse(substitute(...)) >> } >> a <- 1 >> b <- 2 >> deparseDots(a, b) >> [1] "a" >> >> > ????? I'd like to get c('a', 'b'). > > Does > > names(list(...)) >...
2018 Feb 21
0
deparseDots to get names of all arguments?
...b 20, 2018 at 2:36 PM, Spencer Graves < spencer.graves at effectivedefense.org> wrote: > Hi, All: > > > How can I get the names of all the arguments in dots(...)? > > > I'm able to get the name of the first argument but not the second: > > > > deparseDots <- function(...){ > deparse(substitute(...)) > } > a <- 1 > b <- 2 > deparseDots(a, b) > [1] "a" > > > I'd like to get c('a', 'b'). > > > Thanks, > Spencer Graves > > > > sessionInfo() >...