Recently updated to my weights package on CRAN to version 0.70.  Of particular note is a new function called nalevs, which recodes a variable to range from 0-1, and can do useful functions such as set some values of a factor to missing, others to 0, 1, .5, or the mean (weighted or unweighted).  Hope it proves useful.

Also, should mention rd, which is another internal function I have made public.  It changes any number or vector of numbers to text, drops the leading zero, and rounds to a user-specified number of digits.  Thanks to Alex Tahk for some coding help on that one.



No responses yet

Leave a Reply