[R] Basic question about: <<- and method start with dot.

Fabrice Tourre fabrice.ciup at gmail.com
Tue Oct 2 06:00:39 CEST 2012


Dear list,

When I read some source code, I find lot of place used  symbol <<- , e.g.

lastTime <<- newTime;

What is the meaning here?

Also, I find some method with the name start with dot, e.g.

.RowStandardizeCentered = function(x) {
	div = sqrt( rowSums(x^2) );
	div[ div == 0 ] = 1;
	return( x/div );
}

What is the special meaning for the method name start with a dot?

Thank you very much in advance.



More information about the R-help mailing list