[R] Operator overloading

2008-07-10 Thread Tine
' would be some function. bye, Tine __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] L1 nonlinear approximation

2008-07-03 Thread Tine Mlac
Hi! Does anyone knows a solver or R package for L1 nonlinear constrained approximation besides constrOptim or optim and Nelder-Mead method? Bye, Tine ps.: L1 means L1-norm => sum of absolute values. __ R-help@r-project.org mailing list ht

[R] Number of digits in paste funciton

2008-06-18 Thread Tine
Hi! Does anyone know hot to set number of digits to be printed in function 'paste'? Tine Mlač __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.o

[R] Shape preserving interpolating splines

2008-05-29 Thread Tine
Hi! Does anyone know a R package for multivariate (not univariate!) shape preserving interpolating splines. For example spline must preserve monotonocity in both directions, etc... Tine Mlač __ R-help@r-project.org mailing list https

[R] 'Extracting' plot area

2008-05-21 Thread Tine
, Tine __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

[R] Different value between R variance and definition of variance

2007-11-28 Thread Tine
Hi! Let us define random variable: > x = seq(0,1,length=100) If we calculate variance following definition E[(x-E(x))^2] we get: > mean( (x - mean(x))^2 ) # == mean(x^2) - mean(x)^2 0.08501684 And if we use internal R function var: > var(x) 0.08587559 Can anyone tells me why the difference?