[R] greatest common divisor
David Winsemius
dwinsemius at comcast.net
Mon Aug 16 00:36:53 CEST 2010
On Aug 15, 2010, at 5:57 PM, qingchen wrote:
>
> Hello,
>
> Is there a function in R with which we could find the greatest common
> divisor directly?
>
Learn to search:
> rhelpSearch <- function(string,
restrict = c("Rhelp10", "Rhelp08", "Rhelp02",
"functions" ),
matchesPerPage = 100, ...)
RSiteSearch(string=string, restrict = restrict,
matchesPerPage = matchesPerPage, ...)
> rhelpSearch("greatest common divisor")
A search query has been submitted to http://search.r-project.org
The results page should open in your browser shortly
>
Or use package "sos"
> Or is there a funciton, which could help us to find the remainder of a
> division directly?
Same advice ... with the additional search strategy of:
?"%%"
#integer division remainder, but read all the caveats about using R
for activities regarding the different data types of numeric and
integer.
> Best wishes! Thank you!
--
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list