<jupyter_start><jupyter_text>**Data Warehousing & Data Mining*** Introduction to R<jupyter_code>a=3
a
a=4;
a
class(a)
a_string = "a random string"
a_string
a.string = 'another random string'
a.string
a_string
class(a_string)
c(1,2,3,5,9)
sum(c(1,2,3,5,9))
a= c(5,6,7,8,9,10)
b <- 25:30

b
a+b
c = 1:6
a+c
2:3
1:3
my.list = list(name="Gordon",age=500)
my.list
my.list[[1]]
my.list[0]
matrix(1:12,3,4)
as.data.frame(matrix(1:12,ncol=4,nrow=3))
a
a==5
g=4
if(g==4){
    print("water is good")
}
if(g==5){
    print("water is good")
}else{
    print("definitely not")
}
g=3
repeat {
    print(g)
    g = g-1
    if(g==0){
        break
    }
}
for( i in 1:3){
    print(i)
}
add = function(a,b){
    print(a+b)
}
result = add(b=4,a=5)
result<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup