die<-c(1,2,3,4,5,6)
die
## [1] 1 2 3 4 5 6
is.vector(die)
## [1] TRUE
five <- 5
five
## [1] 5
is.vector(five)
## [1] TRUE
length (five)
## [1] 1
length(die)
## [1] 6
int<-1L
text<-"ace"
int<-c(1L,5L)
text<-c("ace","hearts")
sum(int)
## [1] 6
die<-c(1,2,3,4,5,6)
die
## [1] 1 2 3 4 5 6
typeof(die)
## [1] "double"
int<-c(-1L,2L,4L)
int
## [1] -1 2 4
typeof(int)
## [1] "integer"
sqrt(2)^2-2
## [1] 4.440892e-16
text<-c("Hello","World")
text
## [1] "Hello" "World"
typeof(text)
## [1] "character"
typeof("Hello")
## [1] "character"
3>4
## [1] FALSE
logic <- c(TRUE, FALSE, TRUE)
logic
## [1] TRUE FALSE TRUE
typeof (logic)
## [1] "logical"
typeof(F)
## [1] "logical"