[R] Two images functions
murdoch.duncan at gmail.com
Mon Sep 6 14:23:35 CEST 2010
On 06/09/2010 8:14 AM, Alaios wrote:
> Hello everyone.
> I would like to ask you what happens when two functions with the same name
> exist. I discovered this today when I wrote
> ?images (I was trying to understand how it works)
> ?images gave me the following output:
> Help on topic 'image' was found in the following packages:
> (in package raster in library
> Display a Color Image
> (in package graphics in library /usr/lib64/R/library)
> How can I be sure which function is called when I write Image(x,y,f) or Image(f)
R is case sensitive, so you need to write image, not Image. The one
found will be the one that is earliest on the search list (which you can
see by running search()).
If you want to be sure to get a particular one regardless of the search
list, prefix the name with the package name, e.g. raster::image will
find the one in the raster package.
> I would like to thank you in advance for your help.
> Best Regards
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help