R:null, NA, and NaN

Source: Internet
Author: User

    • NaN ("not a number")  means 0/0
    • NA (' not Available ') is Generall Y interpreted as a missing value and has various forms–na_integer_, Na_real_, etc. 
    • Therefore, Nan≠na a nd there is a need for NaN and NA.
    • is.na () returns true for both Na and NaN, however Is.nan () return True for NaN (0/0) and FALSE for NA.
    • NULL  represents The value in question simply  does not exist , rather than Bei Ng existent but unknown.
    • REF:
    • http://www.cookbook-r.com/Basics/Working_with_NULL_NA_and_NaN/
    • http ://stackoverflow.com/questions/7031127/data-frames-and-is-nan
    • http://www.r-bloggers.com/ difference-between-na-and-nan-in-r/
    • http://help.scilab.org/docs/5.5.2/en_US/isnan.html
    • /http www.quantlego.com/howto/special-missing-values-in-r/

R:null, NA, and NaN

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.