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

  • Home
  • SEARCH
  • 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 7664791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:23:40+00:00 2026-05-31T14:23:40+00:00

How can I evaluate a string of class character as data frame? Concretely, I

  • 0

How can I evaluate a string of class character as data frame?

Concretely, I have several data frames let’s say: x0,x1,x3:

x0 <- data.frame(a=1,b="a")
x1 <- data.frame(a=2,b="b")
x2 <- data.frame(a=3,b="c")

They have all the same structure and I would like to merge them with rbind. To avoid to call each single data frame I use regular expression:

x <- grep("x\\d",ls(),perl=TRUE,value=TRUE) 

This gives me a vector of class character. Now, I would like to merge them to one dataframe called x.all:

x.all <- rbind(x)

What I get is a matrix with dimension (1,3). Does anyone can give me a hint? Thanks very much for help.

  • 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-05-31T14:23:42+00:00Added an answer on May 31, 2026 at 2:23 pm

    Using get and do.call:

    do.call(rbind, lapply(x, get))
    #   a b
    # 1 1 a
    # 2 2 b
    # 3 3 c
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class that wraps the GetGlobalResourceObject and GetLocalResourceObjet so they can be
I have a class to evaluate set algebra but wish to template it. At
Why can a string like {opacity: 1.0, width: '132px'} not be evaluated using eval()
On iOS, I know that we can evaluate a trust with SecTrustEvaluate(). To create
This is a strange LINQ-to-SQL problem which can't evaluate as an Enumerable (in SQL)
How can I get MSBuild to evaluate and print in a <Message /> task
I'm currently trying to make a class that can register strings as identifiers and
In Java, I can access a public member of a class using . as
Can someone perhaps help me with a little problem I have on my database
I want to initialize a class with data coming from a MySql db. Some

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.