Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8523141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:19:27+00:00 2026-06-11T07:19:27+00:00

In improving an rbind method, I’d like to extract the names of the objects

  • 0

In improving an rbind method, I’d like to extract the names of the objects passed to it so that I might generate unique IDs from those.

I’ve tried all.names(match.call()) but that just gives me:

[1] "rbind"         "deparse.level" "..1"           "..2" 

Generic example:

rbind.test <- function(...) {
  dots <- list(...)
  all.names(match.call())
}

t1 <- t2 <- ""
class(t1) <- class(t2) <- "test"
> rbind(t1,t2)
[1] "rbind"         "deparse.level" "..1"           "..2" 

Whereas I’d like to be able to retrieve c("t1","t2").

I’m aware that in general one cannot retrieve the names of objects passed to functions, but it seems like with … it might be possible, as substitute(...) returns t1 in the above example.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T07:19:28+00:00Added an answer on June 11, 2026 at 7:19 am

    Using the guidance here How to use R's ellipsis feature when writing your own function?

    eg substitute(list(...))

    and combining with with as.character

    rbind.test <- function(...) {
      .x <-  as.list(substitute(list(...)))[-1]
      as.character(.x)
     }
    

    you can also use

    rbind.test <- function(...){as.character(match.call(expand.dots = F)$...)}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm playing with improving performance during saving category and I found that once category
We are working on improving our DAL which is written in LINQ that talks
Can anyone give me a hand improving the performance of this cursor logic from
I've recently been tasked with improving a records database that consists of the following:
It's been a couple of days that I'm working on improving NHibernate Insert performance.
I am looking for ways to measure and prove that our team is improving,
In hopes of improving the relevance of year to year comparisons I would like
I am working on improving our glossary functionality in a custom CMS that is
I was improving my payment process, and I realized that the documentation now didn't
I'd like some help improving the efficiency of my circular buffer code. I had

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.