R Learning 2 data types

Source: Internet
Author: User

Constants in R:

NA, no data, not available

INF Positive Infinity

-inf Negative Infinity

True True

False false

All objects have two intrinsic properties, the element type mode (), and length ().

Basic types of elements within an object:

Numeric numeric

Character type character

Complex Type Complex

Logic type Logical

Functional function

In addition to the element types, the objects themselves have different types, which represent different data structures Struct,r object types in the include:

Vector vectors, consisting of a series of ordered elements

Factor factor, don't understand what it means

Array of arrays with the same set of elements with multiple subscript types

Matrices Matrix, is just an array of double subscripts.

A data frame, a structure similar to a matrix, can be a different object in a data frame.

Time series, which contains some additional attributes, such as frequency and time

List, general form of vector, without requiring all elements to be of the same type

R Learning 2 data types

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.