CO SCI 136 Lecture Notes - Lecture 20: Descriptive Statistics, High High, Apache Spark
Document Summary
Logical operators exactly equal to not equal to or and less than or equal to greater or equal to. Iteration syntax if(logical expression){commands}else {commands} for(i in 1:n){commands} while(logical expression){commands} repeat{commands} ifelse(test,yes,no) Recursion repetition of steps function calls itself from inside matrix array. Data objects vector vector object c() nrow ncol number of rows number of columns byrow=t/f creates matrix by row size intervals data data object dim=c(n,m,s) specify dimensions read. csv opens comma delimited files. Dataframe manipulation subject v1 v2 v3 v4 v5 subject v1 v2 v5 v4 v5 subject v1 v2 v3 v4 v5 subject v1 v2 v3 v4 v5. 4 subject v1 v2 v3 v4 v5 subject v1 v2 v3 v4 v5 subject v1 v2 v3 v4 v5 subject v1 v2 v3 v4 v5. Dataframe manipulation subject v1 v2 v3 v4 v5 subject a b c d e subject v1 v2 v3 v4 v5 subject v1. V5 v4 v5 yes yes yes no no yes.