Etl See
Etl See
COMMANDS OUTPUT
a <- 33
b <- 200
if (b > a) {
print("b is greater than a")
}
# Vector of strings
fruits <- c("banana", "apple", "orange")
# Print fruits
fruits
5) R-List [[1]]
[1] "apple"
thislist <-list("apple", "banana", "cherry")
thislist[1]
6) R-Matrix
EMERGING TECHNOLOGY LABORATORY - 21CSL69B
7) R – Line Plot
8) R – Scatter Plot
x <- c(5,7,9,1,2)
y <- c(10,20,30,40,50)
9) R – Pie Plot
x <- c(10,20,30,40)
# x-axis values
x <- c("A", "B", "C", "D")
# y-axis values
y <- c(2, 4, 6, 8)
barplot(y, names.arg = x)