R is a statistical analyzation language, and that means it is very good at data manipulation and data analyzation. One key way to analyze data is through plotting, and R excels in this field.
Assigning numerical values to variables can be done as follows
From within a function, access the value of variable y in the base environment (i.e., the command prompt environment)
ls()
ls.str()
str(ab)
ls.str(pattern=’ab’)
fix(A)
Controlling formating of output is accomplished with
options(digits=6)
Machine epsilon, i.e. difference between 1 and the next largest double-precision floating-point number
.Machine$double.eps
Define function f(x), then do
uniroot(f, c(a,b))
to find a root
between a and b, assuming the sign
of f(x) differs at x = a and x = b.
Default forward error tolerance (i.e.
error in x) is fourth root of machine
epsilon, (ǫ mach ) 0.25 . To specify e.g.
a tolerance of 2 −52 , do uniroot(f,
c(a,b), tol=2^-52)
.
[,1] [,2] [,3]
[1,] 1 2 3
[2,] 4 5 6
[3,] 7 8 9