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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:54:19+00:00 2026-06-09T14:54:19+00:00

I would like to import data into R from a table like this: http://www.rout.gr/index.php?name=Rout&file=results&year=2011

  • 0

I would like to import data into R from a table like this:

http://www.rout.gr/index.php?name=Rout&file=results&year=2011

I tried using XML library as suggested by the thread below but I couldn’t get anything.

Scraping html tables into R data frames using the XML package

  • 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-09T14:54:20+00:00Added an answer on June 9, 2026 at 2:54 pm

    There do seem to be some funky things going on with that site. It seems to return no data unless you fake the user-agent. Even then, readHTMLTable doesn’t behave too well, returning an error if you pass it the whole doc. After reading the source, you can see that the relevant table has id table_results_r_1 and isolating that and passing the result through works:

    library(XML)
    library(httr)
    
    theurl <- "http://www.rout.gr/index.php?name=Rout&file=results&year=2011"
    doc <- htmlParse(GET(theurl, user_agent("Mozilla")))
    results <- xpathSApply(doc, "//*/table[@id='table_results_r_1']")
    results <- readHTMLTable(results[[1]])
    rm(doc)
    

    Now you’ll need to tidy up the table column names.

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

Sidebar

Related Questions

How can I import a CSV file into a MySQL table? I would like
I would like to be able to import TFS tasks / work items into
i am using Docmd.TransferText to import data from a text file into my access
I'm trying to write a table from a SQLite database into an R data
I have the unfortunate task of having to import data from excel into a
I have a table that contains data that I am trying to import into
I'm trying to import data from an excel spreadsheet into a SQL Server 2008
I have a csv file with dump data of table and I would like
I am modifying a website on wordpress (codex) and I would like to import
I would like to know what is the best import strategy within django reusable

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.