Posts

Statistical Programming with R

Hi, Now it is time to start statistical analysis. Come let us go. What is a data frame A data frame is used for storing data as tables. It is a list of arrays of equal length. For example, the following variable df is a data frame containing three vectors n , s , b . > n = c(21, 31, 52) > s = c("ada", "c", "b") > b = c(TRUE, TRUE, FALSE) > df = data.frame(n, s, b)       # df is a data frame    This can be further used for analysis and plotting.   What is qualitative data   A dataset can be known as qualitative or categorical if the values  belong to a collection of known defined non-overlapping classes. Common examples include student letter grade (A, B, C, D or F), commercial bond rating (AAA, AAB, ... ) and consumer clothing shoe sizes ...

R Array Operations

Hi All, See the Array operations > a = c(1, 2, 5, 4) > b = c(1,1, 4, 8) Then, if we multiply a by 5, we would get a vector with each of its elements multiplied by 5. > 5  *  a [1]  5 10 25 20    The same can be done with other arithmetic operators.   > a + b  > a  -  b > a  *  b > a / b  Recycling Rule If two arrrays are of unequal length, the shorter one will be recycled in order to match the longer vector. > w = c(10, 20, 30) > v = c(1, 2, 3, 4, 5, 6, 7, 8, 10) > w + v [1] 11 22 33 14 25 36 17 28 40     

Introduction

Dear All, R is really a useful tool for all  kind of users..more intelligent one. More support for Graphics and Statistical analysis. R console will look like this. > 1 + 2 [1] 3 Variables can be initialized like this > y = 1 > y [1] 1  Vectors can be created like tis s(2, 3, 5) [1] 2 3 5