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