it will store a value in variable
a<-2
a
## [1] 2
function combine values into vector.
c(123)
## [1] 123
x <-c("karam", "ram","anu")
class(x)gives type of x. ##coments=>
a<-1#comment
click on tools and install package. ##control+alt+i=>to insert chunk. cntrl+R=> to execute selected chunk.
>install.package("ggplot")#this is inline r code which does not execute.
this
there
where
help(mean)
## starting httpd help server ... done
x<-c(1,2,3,NA)
sd(x,na.rm=TRUE)
## [1] 1
sd(x,TRUE)
## [1] 1
sd(na.rm = TRUE,x)
## [1] 1
sd(TRUE,x=x)
## [1] 1
.r-help@r-project.org
.stackoverflow
.github issue ## create one 5 dimensional vector of values4,7,3,2,5 as ‘x’
x<-c(4,7,3,2,8)
x
## [1] 4 7 3 2 8
y<-x+2
y
## [1] 6 9 5 4 10
mean(y)
## [1] 6.8
sd(y)
## [1] 2.588436
z<-c(2,3,NA,NA,NA)
x+z
## [1] 6 10 NA NA NA