-
R global variables. This is one of th …
http://le-cabaret.com/?kravchychka=six-fours-les-plages-sexe-femme&bac=07 R global variables. This is one of the annoying features of R. What it means is this. You defined a function. And accidentally there is an undefined variable in the function. Then R does not stop but keep looking for the variable and use one if there is one in the environment that called the…
-
Secondary axis in R plot(x) par(new = …
hardly Secondary axis in R plot(x) par(new = T) plot(y, axes = F, xlab = ”, ylab = ”) axis(4)
-
Compute or plot an empirical cumulative …
Compute or plot an empirical cumulative distribution function ecdf()
-
Maximum-likelihood fitting of univariate …
Maximum-likelihood fitting of univariate distributions fitdistr()
-
rug() presents the the data on the x-axi …
rug() presents the the data on the x-axis
-
Difference between density() and bkde() …
Difference between density() and bkde() They are also different in the default bandwidth. Venables, W. N. and B. D. Ripley, (2002), Modern Applied Statitics with S (4th ed.), pp126-128
-
Difference between density() and bkde(); …
Difference between density() and bkde(); two kernel density estimation functions in R On Mon, 18 Jan 2010, Mario Valle wrote: > Any advice when to use denstity() and when the KernSmooth package bkde() to > smooth a histogram? > > No specific problem to use either one, but I’m curious why there are two so…
-
Great explanation about many apply funct …
Great explanation about many apply functions in R A brief introduction to “apply” in R
-
Use sapply(), lapply(), vapply() when th …
Use sapply(), lapply(), vapply() when the data is data frame or list and use apply() when the data is matrix. Because matrix does not have the “direction”, e.g., row-wise or column-wise, to apply the function. So it has to be explicitly given. apply(data, 2, FUN) # for example, column-wise application of the FUN
-
Difference between “[” and “[[” in R …
Difference between “[” and “[[” in R Those are operators for elements in R. The difference between the two is that “[” slices the data while “[[” extracts the data. The reason is “[[” iterates to get the data. The manual says it in this way; “[” keep the name while “[[” drops the name,…