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 8066913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:08:16+00:00 2026-06-05T12:08:16+00:00

is there any way how to create something like data.frame object in R that

  • 0

is there any way how to create something like data.frame object in R that would point to specific table in MySQL database and would behave like data.frame? I haven’t been able to find any mention about it.

As an example, let us say, I have a table called customers and columns names, heights, weights and I would like some function, that would create variable customer and I could access the respective columns in data.frame-like way, i.e. customer$heights, etc.

My problem is that I am working with very large datasets and operating over database is much faster and one might actually hack some descriptive statistics in SQL to be used with such pointer variable, for example sum, average, etc…

Thanks for answer.
T.

  • 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-05T12:08:17+00:00Added an answer on June 5, 2026 at 12:08 pm

    Yes, external pointers can do that, and the RODBC package uses it. See the “Writing R Extensions” manual for an introduction to external pointers.

    The ff, bigmemory and mmap package may give you ideas about how to make external data appear internal to R. It can be done, but it’s not a quick hack for a rainy afternoon.

    And in general, one is generally best off doing as much computation ‘near the data’ as possible. Were you using PostgreSQL, you could try the embedded Pl/R extension for it. To my knowledge, no such extension exists for MySQL.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to have something that looks just like a file on
Is there any way to crate nested union types in F#? Something like this
Is there any way to create a new NSString from a format string like
Is there any way to create a property like this C# property in Objective-C?
Is there any way to create effects like dents, pinching, twisting, squashing, etc. on
We can't use java.text.SimpleDateFormat, so is there any way to create date object from
is there any efficient and easy way to execute statements similar to: CREATE TABLE
is there any way to create a new page at runtime? Maybe generate the
Is there any way to create a naming convention for my primary key constraints
Is there any way to create a variable sized doubly-scripted array in C (not

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.