Glossary of Advanced R

Source: Internet
Author: User

Reprint Please specify source: http://www.cnblogs.com/lizichao/p/4800513.html

Vocabulary List

If you want to play r, the important thing is to have a good working vocabulary. Here's a good glossary I think. You don't have to be familiar with the details of each function, but you should know that they exist. If you have not heard the functions in the glossary, I strongly recommend that you read the relevant documentation.

I read all the functions of the base package, the stats package, the Untils package, and extracted the functions I thought were the most important, forming the following glossary. The list also has some important functions in the other packages, and there are some more important things, such as options ().

Basic functions
# The first functions to learn?str# Important Operators and Assignment%inch%, Match=, <-, <<-$, [, [[, Head, tail, subsetwithassign,Get# Comparison all.equal, identical! =, = =,;, >=, <, <= is. Na, complete.cases is. finite# Basic Math*, +, -, /, ^, %%, %/%ABS, Signacos, ASIN, ATAN, Atan2sin, cos, tanceiling, floor, round, trunc, Signifexp, log, log10, log2, Sqrtmax, Min, Prod, Sumcummax, Cummin, Cumprod, Cumsum, Diffpmax, Pminrangemean, median, cor, SD,varrle# Functions to DoWith Functionsfunctionmissingon.exitreturn, invisible# Logical&sets&, |,!, Xorall, Anyintersect, Union, Setdiff, setequalwhich# Vectors and Matricesc, matrix# automatic coercion rules charact ER> Numeric >logicallength, Dim, Ncol, Nrowcbind, Rbindnames, colnames, Rownamestdiagsweep as. Matrix, data.matrix# Making vectors crep, rep_lenseq, Seq_len, Seq_alongrevsamplechoose, factorial , COMBN ( is/ as). (character/numeric/logical/...) # Lists&data.frames list, unlistdata.frame, as. data.framesplitexpand.grid# Control Flowif, &&, | | ( Shortcircuiting) for, whileNext, BreakSwitchifelse# Apply&friendslapply, sapply, Vapplyapplytapplyreplicate
Common data structure related functions
= FALSE) # Array manipulationarraydimdimnamesapermlibrary (abind)
Statistical functions
~, Ianova, Coef, Confint, vcovcontrasts# Miscellaneous testsapropos ("\\.test$"  * (Beta, binom, Cauchy, CHISQ, exp, F, Gamma, Geom, Hyper, Lnorm, Logis, Multinom, nbinom, Norm, POIs,   si Gnrank, T,   unif, Weibull, Wilcox, Birthday, Tukey) # Matrix algebra Crossprod, Tcrossprodeigen, QR, SVD%*%,%o%
   
    , Outerrcondsolve
   
Use R
?  =try
Input/Output
# Outputprint, Catmessage, Warningdputformatsink, capture.output# Reading and writing datadatacount.fieldsread.csv, Write.csvread.delim, Write.delimread.fwfreadLines, Writelinesreadrds, Saverdsload, Savelibrary (foreign) # Files and Directories Dirbasename, DirName, Tools::file_extfile.pathpath.expand, NormalizePathfile.choosefile.copy, File.create, File.remove, File.rename, Dir.createfile.exists, File.infotempdir, Tempfiledownload.file, library ( Downloader

Glossary of Advanced R

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.