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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:29:15+00:00 2026-06-15T02:29:15+00:00

Question : How can I use paste without 100000 becoming 1e+05 ? Sorry in

  • 0

Question: How can I use paste without 100000 becoming 1e+05?

Sorry in advance if this question seems frivolous (but it has resulted in a bug in my code). I use R to call an external script, so when I say e.g. paste("abc",100000) I want it to output "abc 100000" and not "abc 1e+05".

Here’s an example of what it looks like on my screen:

> paste("abc",100000)
[1] "abc 1e+05"
> paste("abc",100001)
[1] "abc 100001"

This results in the bizarre behaviour that my script works for the input “100001” but not “100000”.

I realise I could create a script to convert numbers to strings however I like, but I feel I shouldn’t do this if there is an internal way to do the same thing (I suspect there is some “method” I’m missing).

[If it helps, I’m on Ubuntu 12.04.1 LTS (“precise”), running R version 2.14.1 (2011-12-22) in a terminal.]

  • 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-15T02:29:18+00:00Added an answer on June 15, 2026 at 2:29 am

    See ?options, particularly scipen:

    R> paste("abc", 100000)
    [1] "abc 1e+05"
    R> options("scipen"=10)    # set high penalty for scientific display
    R> paste("abc", 100000)
    [1] "abc 100000"
    R> 
    

    Alternatively, control formatting tightly the old-school way via sprintf():

    R> sprintf("%s %6d", "abc", 100000)
    [1] "abc 100000"
    R> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question may be an absolute crap. Can i use the flex 4 sdk
I have a question that can I use AS400ConnectionPool in Spring if then pls
Brief question What command can I use to make my DataSet refresh it's connection
HTML Javascript question to get the selected value of a input-select I can use
Have a rather simple question. Does anyone knows if i can use jparallax both
I'd like to use the html5 widget + it's api (http://developers.soundcloud.com/docs/html5-widget) My question: can
Well, question is in title. Is it possible at all? I can use css
I asked a question earlier about why left joins in Linq can't use defined
My question is, why I can not use hide() & show() to hide/show table
I ask a similar question here and Darin Dimitrov answer that we can't use

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.