Configure Git for RStudio
There is an article from RStudio explained how to configure Git for RStudio. But it is not very detailed. I ran into many problem during the configuration and wasted a lot of time just for configuration. So I decided to…
There is an article from RStudio explained how to configure Git for RStudio. But it is not very detailed. I ran into many problem during the configuration and wasted a lot of time just for configuration. So I decided to…
floor takes a single numeric argument x and returns a numeric vector containing the largest integers not greater than the corresponding elements of x. trunc takes a single numeric argument x and returns a numeric vector containing the integers formed…
Plot Histogram in R: Method 1: hist(vector, breaks) Take care for the parameter “breaks”: according the help: breaks: a single number giving the number of cells for the histogram. Important: the number is a suggestion only! The breakpoints will be…
Useful packages: R: library(matrixcalc) Python: numpy Matrix generation: R: matrix(1:6, 2, 3) Python: np.arange(1,7).reshape(2,3) construct a diagnal matrix: R: advanced-R diag(vector, nrow, ncol) #construct a matrix which diagonal elements is equal to the vector diag(matrix) # a vector which elements is…
I found the easiest way to install R extention for Ubuntun RapidMiner -> Marketplace -> R Extention RStudio -> Tools -> Install Packages… -> Input in the field “Packages”: rJava, JavaGD Or input in R Console: install.packages(c(“rJava”,”JavaGD”)) Restart RapidMiner you get a popup…
Useful web sites for R: Quick-R R-bloggers r-tutor Kickstarting R cran.r-project.org r books Andrew Field, youtube videos Simply Statistics idre stat programiz shiny learn graph library: lattice, ggvis, ggplot2 About Package install.packages(“ggplot2”), you can also install with RStudio menu: Tools…
There are different ways doing math for vector in python 1. use loop 2. use loop, but in list 3. use numpy 4. use map and lambda functions In R language, the vector math is relative easy Alternative for creating the…