I'm trying to make my R scripts more readable by others, so I searched for some R programming conventions and found the following two: - http://www.ci.tuwien.ac.at/Conferences/useR-2004/Keynotes/Maechler.pdf - http://www.maths.lth.se/help/R/RCC the latter being quite extensive. Are there some other sources that might be useful? Thanks in advance, -- Sebastian P. Luque
On Thu, 31 Mar 2005, Sebastian Luque wrote:> I'm trying to make my R scripts more readable by others, so I searched for > some R programming conventions and found the following two: > > - http://www.ci.tuwien.ac.at/Conferences/useR-2004/Keynotes/Maechler.pdf > - http://www.maths.lth.se/help/R/RCC > > the latter being quite extensive. Are there some other sources that might > be useful?`Writing R Extensions'. Layout is by far the most common cause of hard-to-read code. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
Hi all -- I've got a large dataset which consists of a bunch of different scales, and I'm preparing to perform a cluster analysis. I need to normalize the data so I can calculate the difference matrix. First, I didn't see a function in R which does normalization -- did I miss it? What's the best way to do it? Second, what's the best way to deal with missing values? Obviously, I could just set them to 0 (the mean of the normalized scales), but I'm not sure that's the best way. -- Chris