Displaying 4 results from an estimated 4 matches for "academa".
Did you mean:
academia
2007 Nov 28
2
Different value between R variance and definition of variance
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?
2008 May 21
2
'Extracting' plot area
Hi!
Does anyone know hot to save (to png, pdf, ...) only plot area. That is
without box around, titles, axis, ...
I tried: par(mar=c(0,0,0,0)) and it works for internal viewer (linux and
windows).
But when I save the image in png it adds that annoying margin around
plot area.
Any ideas?
by, Tine
2008 Jul 10
1
Operator overloading
Hi!
I was just wondering is there anyway to overload operator for custom class.
For example:
I have two matrices A and B with same dimensions. I want to overload
operator '+' with my own function.
Or even better can I create my own (new) operator.
Example:
A+-B where '+-' would be some function.
bye,
Tine
2008 Jun 18
3
Number of digits in paste funciton
Hi!
Does anyone know hot to set number of digits to be printed in function
'paste'?
Tine Mla?