search for: revtrunc

Displaying 1 result from an estimated 1 matches for "revtrunc".

Did you mean: retrun
2009 Apr 16
3
"reverse truncate" to extract only decimal values
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! Tyler -- View this message in context: http://www.nabble.com/%22reverse-truncate%22-to-extract-only-decimal-values-tp23086851p23086851.html Sent from the R help mailing list archive at Nabble.com.