BasicR: Difference between revisions

From RAJ INFO
Jump to navigation Jump to search
Created page with "Category:R <source lang=R> b = c(2,4,5,6,7,78,89,10) c = (30:100) d = rnorm(100,0,1) mean(d) var(d) sd(d) mean(b) summary(b) x = rnorm(200, 2,4) hist(x) boxplot(x) A= 1..."
 
mNo edit summary
 
Line 1: Line 1:
[[Category:R]]
[[Category:R]]
 
== Basic R ==
<source lang=R>
<source lang=R>
b = c(2,4,5,6,7,78,89,10)
b = c(2,4,5,6,7,78,89,10)
c = (30:100)
c = (30:100)
Line 21: Line 20:
mat2[2,]
mat2[2,]


</source>
== Import file ==
<source lang=R>






</source>
</source>

Latest revision as of 06:14, 19 November 2016

Basic R

b = c(2,4,5,6,7,78,89,10)
c = (30:100)
d = rnorm(100,0,1)
mean(d)
var(d)
sd(d)
mean(b)
summary(b)
x = rnorm(200, 2,4)
hist(x)
boxplot(x)

A= 1:9
mat1= matrix(A,3,3)
mat2 = matrix (A, 3, 3, byrow = TRUE)
mat2[,2]
mat2[2,]

Import file