[go: up one dir, main page]

0% found this document useful (0 votes)
16 views1 page

R Command Summary

The document provides an overview of common R commands organized into three sections: 1) Basic commands for inputting and importing data, 2) Statistical commands for calculations like standard deviation, correlation, and distributions, 3) Graphical commands for visualizing data through histograms, boxplots, plots, bar charts and pie charts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

R Command Summary

The document provides an overview of common R commands organized into three sections: 1) Basic commands for inputting and importing data, 2) Statistical commands for calculations like standard deviation, correlation, and distributions, 3) Graphical commands for visualizing data through histograms, boxplots, plots, bar charts and pie charts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

R Command Summary

1. Basic
a. Input data

c(data1, data2, data3)

b. Import Dataset

install.packages("x")

library("x")

data("x")

2. Statistic
a. Standard Deviation
Std(data)
b. Coefficient Correlation
Cor(data1,data2)
c. Permutation
Permutations(n=x,r=y)
d. Combination
Combinations(n=x,r=y)
e. Weighted Mean
weighted.mean(data1,data2)
f. Uniform Distribution
curve(dunif(x,min = 0,max = 30),0,33)
polygon(c(25,seq(25,30,0.033),30),c(0,dunif(seq(25,30,0.033), min = 0, max =
30),0),col="grey", border = NA)
g. #P(X<=$790) LOWER TAIL TRUE KARENA LEBIH KECIL
h. pnorm(q=790,mean=1000,sd=100,lower.tail = T)
3. Graph
a. Histogram

Hist(data)

b. Boxplot
Boxplot(data1~data2)
c. Plot
plot(data1~data2)
d. Bar Chart
barplot(data, main = "judul", col = “warna”)
e. Pie Chart
Pie(data)

You might also like