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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:24:27+00:00 2026-06-09T22:24:27+00:00

There is a strange thing when i use read.table to get data. data=read.table(‘/home/tiger/nasdaqlisted.txt’,head=T,sep=’|’) dim(data)

  • 0

There is a strange thing when i use read.table to get data.

data=read.table('/home/tiger/nasdaqlisted.txt',head=T,sep='|')
dim(data)
[1] 750   6

in fact,there are 2454 lines in the file,what’s wrong?
http://freeuploadfiles.com/bb3cwypih2d2

  • 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-09T22:24:29+00:00Added an answer on June 9, 2026 at 10:24 pm

    I think the issue comes from the fact that some of the names contain the quote character ' (in names such as Angie's List, Inc.).
    The default argument in read.table for quote being "\"'" it needs to be changed for your data to be read correctly.

    read.table("path/to/file", header=TRUE, sep="|", quote="")
    

    As per @mrdwab suggestion, read.delim having "\"" as default quote argument will work without needing any change:

    read.delim("path/to/file", header=TRUE, sep="|")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There's a strange requirement where I need to get server side data on page
This is the strange thing I noticed in Python sets. I read there is
I'm using Android support library v13. There is a strange thing I couldn't understand.
I have noticed that there are strange requests to my website trying to find
i try to send my datas to php with ajax but there's strange mistake.
There is a strange behavior in my code and I really don't know how
there is a strange white line in my screen. It's possible to see the
There is a strange bug in ListView/GridView in WPF when the SelectionMode is set
There is some strange behaviour in parsing KML produced by Google Earth using a
I promise you I am not lying. There is one strange line in this

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.