connygy

connygy

trunc() and floor(), round() and signif() in R

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

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…

matrix calculation in R and Python

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…

How to install R-extention in RapidMiner for Ubuntu?

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…

Start with R

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…

JAVA_HOME Problem during Hadoop installation on windows

If you install the hadoop in windows, after the installation, you will confront this problem: you can not set the evironment valuable. This file won’t work: c:\deploy\etc\hadoop\hadoop-env.cmd If you do this step: “%HADOOP_PREFIX%\sbin\start-dfs.cmd” Then you will see a error message…