On Thu, Apr 16, 2009 at 10:30 PM, T.D.Rudolph <[email protected]> wrote: > > hello there, > > Is there a way of truncating in the opposite direction so as to retain only > the values to the right of the decimal?? > > i.e. rather than: >> trunc(39.5) > [1] 39 > > i would get something like: >> revtrunc(39.5) > [1] 0.5 > > I've been searching to no avail but I imagine there is a very simple > solution!
'minus'? x - trunc(x) ? Barry ______________________________________________ [email protected] 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.

