Blog Archives

Inputting Data in Matrix Format

June 6, 2013
By

Matrix in R is formed using matrix, rbind, or cbind function. These functions have the following descriptions:matrix - used to transform a concatenated data into matrix form of compatible dimensions. rbind - short for row bind, that binds a conca...

Read more »

Basic Mathematical Functions

April 20, 2013
By

R can perform the usual mathematical operations, below are the functions:Arithmetic +    - addition-    - subtraction*    - multiplication/    - divisionTrigonometrysin    ...

Read more »

Installing, Loading, and Detaching R Packages

April 1, 2013
By

To install a package in R, the function to be used is install.packages. Let say we want to install the ggplot2 package, well simply code this withTo install more than one package, we do this byNote that in executing the above codes, a dialogue box...

Read more »

Importing Data to R

March 30, 2013
By

There are number of ways in importing data into R, and several formats are available,From Excel to R From SPSS to RFrom Stata to R, and more hereIn this post, I'm going to talk about importing common data format that we often encounter, such as Excel, ...

Read more »

Entering Data to R

March 30, 2013
By

To enter data into R, two common and easy to use R functions are utilized.The concatenate function, c; and,The data.frame function.The concatenate function, c, is use for combining data points into a single numeric R object. The usage of this function ...

Read more »

Download and Install R in Ubuntu

March 30, 2013
By
Download and Install R in Ubuntu

There are two ways to install R in Ubuntu. One is through the terminal, and the other is through the Ubuntu Software Center.Through TerminalPress Ctrl+Alt+T to open Terminal Then execute sudo apt-get update After that, sudo apt-get install r-baseT...

Read more »

Download and Install R in Windows

March 30, 2013
By

The R statistical package is available at CRAN website. In this site, do the followingClick the Download R for Windows. Then go to install R for the first time in the base subdirectory. And finally download the latest version of R for windows...

Read more »

Experimental Design: Problem Set

June 21, 2012
By
Experimental Design: Problem Set

QUESTIONSThe tensile strength of Portland cement is being studied. Four different mixing techniques can be used economically. The following data have been collected: MixingTechniques Tensile Strength (lb/in­­2) ...

Read more »

My On-Job Training Analytics

May 22, 2012
By
My On-Job Training Analytics

I have been working at Provincial Statistics Office of Tawi-Tawi (Philippines) which was part of the training on my OJT (On-Job Training). One of the requirements of the training is at least 80 hours of services, so I decided to work from April 19 to M...

Read more »

Average Annual Population Growth Rate of Tawi-Tawi

May 19, 2012
By
Average Annual Population Growth Rate of Tawi-Tawi

R Codeslibrary(ggplot2) TawiTawiGrowthRate <- as.numeric(c(2.6, 3.3, 5.9, 1.6, 1.8, 5.5, 5))CensalYear <- c("1948-1960","1960-1970","1970-1980","1980-1990","1990-1995","1995-2000","2000-2007") qplot(CensalYear, TawiTawiGrowthRate, xlab ...

Read more »