4 views

Uploaded by Patarapol Pitakwana

- Montecarlo Global Risks
- Evaluation of Physiological Growth and Yield Responses of a Tropical Oil Crop
- Final Exam Factorial Design
- xc
- p2 Smkbm Percubaan p2 2014(a)
- Biotek
- DE71 02A Gen1Factor P1
- A Study on Factors Governing Computerized Accounting in Selected SMEs' of Gujarat (2)
- Validation of the Brazilian Version
- Research.ppt
- Upper-body Power as Measured by Medicineball
- Anova
- Gender differences in attitudes towards learning oral skills using technology.pdf
- Analyse Phase
- DESIGNEXPERT General One Factor Part 1 En
- Setting Expansion
- Tabulasi Data
- EKO PROJECT EDUCATIONAL RESOURCES AS PREDICTORS OF MATHEMATICS ACADEMIC ACHIEVEMENTS
- Artikel Pandu Pengaruh Prosedur Administrasi
- Time–Motion

You are on page 1of 2

Card by Jonathan Baron. Parentheses are for functions, brackets are for

indicating the position of items in a vector or matrix.

Miscellaneous

q()

options()

history()

<INSTALL package1

m1[,2]

m1[,2:5] or

m1[,c(2,3,4,5)]

m1$a1

NA

is.na()

library(mva)

require(mva)

NaN

Inf

data()

demo()

Help

help(command1)

help.start()

help(package=mva)

apropos("topic1")

example(command1)

args(fn1)

attach(x1)

detach(x1)

search()

ls()

rm(object1)

save(obj), save.image(fname)

load(fname)

dim(matrix1)

dimnames(x1)

names(df1)

length(vector1)

1:3

c(1,2,3)

seq(from,to,by),

seq(from,to,length)

rep(x1,n1)

cbind(a1,b1,c1),

rbind(a1,b1,c1)

merge(df1,df2)

matrix(vector1,r1,c1)

quit

view/set global options, e.g. number of digits

view past commands youve issued

assignment

install package1

column 2 of matrix m1

columns 25

variable a1 in data frame or list m1

missing data

true if data missing

load the package (e.g.) mva

load the package (e.g.) mva, if not already loaded

not a number

infinity

available data sets

run demos

data.frame(var1=v1,var2=v2)

get help with command1 (use this command for

more detail than is provided here)

start browser help

help with (e.g.) package mva

commands relevant to topic1

examples of command1

show arguments for function fn1

as.factor(), as.matrix(),

as.vector()

is.factor(), is.matrix(),

is.vector()

t()

which(x1==a1)

unique(x1)

is.element(e, x1),

union(x1,x2), setdiff(x1,x2),

intersect(x1,x2)

source("file1")

run the commands in file1

read.table("file1"),

read in data from file1

read.csv("file1"), read.delim("file1")

data.entry()

spreadsheet

scan("file1")

read from file1 (primitive)

download.file(url1)

from internet

url.show(url1),

remote input

read.table.url(url1)

sink("file1")

output to file1, until sink()

write(object, "file1")

writes an object to file1

write.table(dataframe1,"file1") writes a table to file1

Arithmetic

%*%

%/%, ^, %%, sqrt()

outer

Control flow

for (i1 in vector1){...}

if (condition1){...} else {...}

while (condition) {...}

Logic

! x

x & y

x && y

x | y, x || y

xor(x, y)

remove from search path

view the search path

lists all the active objects

removes object1

save the workspace

load the workspace in fname

dimensions of matrix1

names of dimensions of x1

variable names in data frame df1

length of vector1

the vector 1,2,3

creates the same vector

create a sequence

repeats the vector x1 n1 times

binds columns or rows into a matrix

merge data frames

make vector1 into a matrix with r1

rows and c1 columns

make a data frame from vectors v1

and v2

conversion

what it isreturns TRUE/FALSE

transpose

returns indices of x1 where x1==a1

returns the unique elements in x1

set operations

conditional

do while condition is TRUE

NOT x, elementwise

elementwise AND, all elements evaluated

sequential AND, only first elements of x, y used

elementwise and sequential OR

elementwise exclusive OR

matrix multiplication

integer division, power, modulus, square root

outer product function

1

Numerical summaries

max(), min(), mean(),

quantile(), median(), sum(),

var(), cor()

summary(data.frame)

rank(), sort(), order()

ave(x1,y1)

by()

apply(x1,n1,function1)

tapply(x1,list1,function1)

lapply(list1, function1)

sapply(list1, function1)

table()

tabulate()

as named

prints statistics

ranking and sorting

averages of x1 grouped by factor y1

apply function to data frame by factor

apply function1 (e.g. mean) to x by

rows (n1=1) or columns (n2=2)

apply function to x1 by list1

apply function1 to the elements of

list1; sapply simplifies

make a table

tabulate a vector

Programmimg

print(), cat(),

traceback(),

options(error =

dump.frames),

debugger()

substitute()

missing()

...

match.call()

do.call()

R CMD

aov(), anova(), lm(), glm(),

linear and nonlinear models, anova

nls(), nlm()

more for regression: confint(), deviance(), df.residual(),

rstandard(), rstudent(), dffits(), dfbetas(),

cooks.distance(), hatvalues(), vcov(), predict()

t.test()

t test

prop.test(), binom.test()

proportions tests

chisq.test(matrix1)

chi-square test on matrix1 columns

fisher.test()

Fisher exact test

cor(a)

show correlations

cor.test(a,b)

test correlation

friedman.test()

Friedman test

runif(), rnorm(), rgamma(),

probability distributions; prefix is

rbeta(), rchisq(), rbinom(),

r = random, p = prob, d = density,

rt(), rpois(), etc.

q = quantile

optim

general purpose optimization

contrasts()

set dummy coding for factor variables

library(help="stats")

additional standard stat methods

Useful packages

lattice

survival

mvtnorm

maps

boot

nnet

nlme, lme4

hmisc, xtable

coda

ellipse

rggobi

gvlma

cluster

mclust

gam

BRugs, rbugs,

R2WinBUGS

prcomp()

principal components

kmeans()

kmeans cluster analysis

factanal()

factor analysis

cancor()

canonical correlation

Graphics

windows(), postscript(), pdf()

plot(x,y), barplot(),

boxplot(), stem(), hist()

matplot(xmat, ymat)

pairs(matrix)

scatter.smooth()

coplot()

stripplot()

qqplot()

qqnorm(), qqline()

contour(), persp()

heatmap()

points(), lines(), segments(),

arrows(), text(), polygon(),

symbols(), abline()

mfrow(), layout()

par()

lattice package: xyplot(),

bwplot(), densityplot(),

cloud(), wireframe(), splom(),

parallel()

basic plots

matrix plot ymat[,i] on xmat[,i]

scatterplots of all pairs of columns

scatterplot with smooth trend

conditional plot

strip plot (lattice)

quantile-quantile plot

fit normal distribution

plots for 3D data

multiple plotting regions per page

View/set graphics parameters

trellis graphics

debugging

check for missing function arguments

additional name = value type arguments

expand function arguments

evaluate a constructed function call

DOS/unix command line interface

trellis graphics

survival analyses

multivariate normal and t distributions

displaying geographical data

bootstrapping

neural nets

linear and nonlinear mixed models

exporting tables to LateX, HTML, plus others

handling output from BUGS (see also the BOA code)

for elliptical confidence regions in plots

graphical data exploration

a new diagnostic for linear models

various clustering methods

model-based (i.e. Gaussian) clustering

generalized additive models

linking R and Win/OpenBUGS

http://cran.us.r-project.org/,

http://www.bioconductor.org/

3

- Montecarlo Global RisksUploaded byJuly Pinilla
- Evaluation of Physiological Growth and Yield Responses of a Tropical Oil CropUploaded bySolikhin Fatkhur
- Final Exam Factorial DesignUploaded byFelipe Castro
- xcUploaded byAmrik Singh
- p2 Smkbm Percubaan p2 2014(a)Uploaded bymasyati
- BiotekUploaded byHazrati Ummi
- DE71 02A Gen1Factor P1Uploaded byေအာင္ ေက်ာ္ စြာ
- A Study on Factors Governing Computerized Accounting in Selected SMEs' of Gujarat (2)Uploaded byraj
- Validation of the Brazilian VersionUploaded byThiago
- Research.pptUploaded byReymart Manablug
- Upper-body Power as Measured by MedicineballUploaded bySandal Jepun
- AnovaUploaded byganguly_ajay
- Gender differences in attitudes towards learning oral skills using technology.pdfUploaded byjehosha
- Analyse PhaseUploaded byMakhabbat Maku
- DESIGNEXPERT General One Factor Part 1 EnUploaded byLe Minh Vu
- Setting ExpansionUploaded byFaisal Syukrillah
- Tabulasi DataUploaded bysri widia hastuti
- EKO PROJECT EDUCATIONAL RESOURCES AS PREDICTORS OF MATHEMATICS ACADEMIC ACHIEVEMENTSUploaded byOnakoya Sunday Oluwaseun
- Artikel Pandu Pengaruh Prosedur AdministrasiUploaded bysri pandu utami
- Time–MotionUploaded byJoao Pedro
- Notes AnovaUploaded byvignanaraj
- 2015 Diuresis Class Data SummaryUploaded byTasi Zafir
- Template Assign Part 2-1Uploaded byAniss1296
- Table of ContentUploaded byVeer
- AnovaUploaded byaksabhishek88
- Overview of a NovaUploaded byHii King Fong
- 1-s2.0-S2212017314000851-mainUploaded bymanpreet
- uts (ririn)Uploaded byRirin Sutharini
- Effectiveness of Multimedia ReadingUploaded bySuketi Ronggolawe
- VeganUploaded bySiddharta Gauthama

- Technical Paper 2Uploaded byLong Leo
- Selection of Current TrafoUploaded bySuraj Kumar
- Energy 4.0 PolicyUploaded byPatarapol Pitakwana
- Bigdata BlackoutUploaded byPatarapol Pitakwana
- Single Phase Switching of Transmission Lines Using Reactors for Extinction of the Secondary ArcUploaded byPatarapol Pitakwana
- Ansi Mv Techtopics91 EnUploaded byLukman Fauzi
- IRENA RE Statistics 2016Uploaded byPatarapol Pitakwana
- A Big Data Platform to SupportUploaded byPatarapol Pitakwana
- HT Conductor Uprating Appendix to John Irving Submission 27 March 2014Uploaded byPatarapol Pitakwana
- Instrument Transformer BasicsUploaded byChandrasekar Karuppasamy
- Unified theory of augmented Lagrangian methodsUploaded byPatarapol Pitakwana
- WO132Uploaded byjaiganesh1908
- WO132Uploaded byjaiganesh1908

- Tesi Zoltan 251535Uploaded byAgus Hybana
- Ngacho final thesis.pdfUploaded byMasita Draneb
- _i_Cultural Values and Anticipations of Female Leadership Styles.pdfUploaded byVanu Mohan
- Denaturing Gradient Gel Electrophoresis of β-ThalassemiaUploaded byu77
- Cross Cultural issues in consumer science and consumer psychologyUploaded byMichelle Tejeda
- Class 12 Cbse Maths Sample Paper Model 5Uploaded bySunaina Rawat
- Canary R., Marden a., Epstein D. Fundamentals of Hyperbolic Manifolds, Selected Expositions (CUP, 2006)(ISBN 0521615585)(O)(348s)_MDUploaded byNoe Martinez
- Survey QuestionnaireUploaded byzchanna
- principles of questionnaire constructionUploaded byapi-260339450
- TUGAS 1Uploaded byChambo Jack
- In the Financial ServicesUploaded byYatendra Varma
- Day 6Uploaded bydaviske07
- David M. Eagleman et al- A standardized test battery for the study of synesthesiaUploaded byCanola_Olive
- Effect of Light Source, Ambient Illumination, Character Size and Interline Spacing on Visual Performance and Visual Fatigue With Electronic PapersUploaded byJM Cuevas
- EWC661 Sample Test Part AUploaded byAnisah Nies
- GlsUploaded byArsenal Holic
- Teacher IPCRFUploaded byLevi Corral
- Stress Analysis of Reinforced Tunnel Faces and Comparison With the Limit Equilibrium Method 2013 Tunnelling and Underground Space TechnologyUploaded byCarmine Tranfa
- Merit Rating Final and LastUploaded bykrishn
- Educational Attainment United States ReportUploaded bytimlawson100
- Agenda - The South China Sea and Asia Pacific in Transition: Exploring Optionsfor Managing Disputes - June 2012Uploaded bym-here
- 156695374 Consumer Behavior on Amway Products in IndiaUploaded byUniq Manju
- Permanent Ground Anchors(Volume 1).pdfUploaded by김영남
- Analysis of the Effect of Ownership Structure, Corporate Governance Practice and Bonus Compensation on Profit Management in Manufacturing CompaniesUploaded byInternational Journal of Innovative Science and Research Technology
- DHLUploaded bycik_rah
- jurnal prostodonti survey.pdfUploaded byEnding Suryani
- Msc Syllabus of mumbai universityUploaded bysrinu27
- Choosing Statistical TestsUploaded bydrquan
- Land ownership along Van Cleve Lane—A cultural landscape projectUploaded byAngela J. Smith
- MB0044 - Production and Operation ManagementUploaded byMonica Khanna Handa