R Language Programming Art (1) Quick Start

Source: Internet
Author: User

This book is different from other R language Reference books in hand, and mainly interprets the R language from a programmatic perspective, not from a statistical perspective. Because these are not considered in depth, the code is often a collection of commands, not a "program", so hopefully learning this book will improve programming efficiency and make you more like a "programmer".

This article corresponds to the "R Language Programming Art" Chapter 1th: Quick Start.

The function C () that generates the vector, where C means "connection" (concatenate)

How to print a list:

Print (ListName)

STR (listname)

The first one prints all the information, the second is just the display object structure (structure), not limited to the list, and applies to all R objects.

The concept of class: Most R objects are class-based. An instance of a class is generally a list of R, but it comes with an attribute (attribute): Class name (attr (, "class"))

The concept of a class is used in generic functions, which have similar functions, but are applicable to certain classes.

such as the summary () function, is actually a family of functions, for different classes, will call different functions for processing; the plot () function is also a generic function that can be used for different r objects, and for a specific class, the appropriate paint function is found.

R Language Programming Art (1) Quick Start

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.