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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:14:36+00:00 2026-06-06T00:14:36+00:00

missing data are represented as 9999.00 , 9999.0 and 9999.000 in a text file.

  • 0

missing data are represented as 9999.00 , 9999.0 and 9999.000 in a text file.
if I specify in the:

    Rcmdr->data->import->missing data indicator  as  9999,nothing will be assigned to NA.

   but when I assigned to 9999.0  then only the values of 9999.0 are assigned to NA.

is there any-idea on how to assign different values to NA within Rcmdr.
Here is the code added:

      Dataset <- 
    read.table("C:/Users/BRSa12002_L4_d.txt", 
     header=TRUE, sep=",", na.strings="-9999.00", dec=".", strip.white=TRUE)
  • 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-06T00:14:38+00:00Added an answer on June 6, 2026 at 12:14 am

    From ?read.table we learn that argument na.strings takes a vector. Thus, you can use this to assign several different values as NA.

    Dataset <- read.table("C:/Users/BRSa12002_L4_d.txt", 
                   header=TRUE, sep=",", 
                   na.strings=c("-9999.00","-9999.0","-9999"), 
                   dec=".", strip.white=TRUE)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This works but for some reason the comma is missing. data gets inserted as
I have large sets of data but somewhere in columns there is missing data
I have a dataset where missing data is represented as -999 . The data
I have a Smarty template file in which I'm looping over hierarchical data represented
I have some failing builds and the build data is missing from the emails
As you would expect from a DSL aimed at data analysis, R handles missing/incomplete
Probably missing something completely obvious here, but here goes. I'm starting out with Spring
How should stereo (2 channel) audio data be represented for FFT? Do you A.
I am trying to make a (very) simple Data Binding test, but it doesn't
I know this looks like a lot of text, but I think it's a

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.