[R] doubt in command

Duncan Murdoch murdoch.duncan at gmail.com
Tue Oct 23 15:57:14 CEST 2012


On 23/10/2012 9:42 AM, Ivan Calandra wrote:
> Hi Julio,
>
> Someone correct me if I'm wrong, but I think you can use '::'
> For example:
>
> Stats::filter()

Yes, but there is no "Stats" package:  R is case-sensitive, and the 
package is called "stats", and needs to be used that way:

stats::filter()

Duncan Murdoch
>
> HTH,
> Ivan
>
> --
> Ivan CALANDRA
> Université de Bourgogne
> UMR CNRS/uB 6282 Biogéosciences
> 6 Boulevard Gabriel
> 21000 Dijon, FRANCE
> +33(0)3.80.39.63.06
> ivan.calandra at u-bourgogne.fr
> http://biogeosciences.u-bourgogne.fr/calandra
>
> Le 23/10/12 15:35, Julio Oliveira a écrit :
> > Dear All,
> >
> >
> > I I have one doubt about use of the command when has the same name (name of command) in two packages.
> >
> > For example:
> > package: Stats
> > package: Signal
> >
> > Both have the filter command.
> >
> >
> > How use the command (filter) to a specific package, when I need work with both packages  ?
> >
> >
> > Thanks
> >
> > Julio
> > 	[[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-help at r-project.org 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.
> >
>
> ______________________________________________
> R-help at r-project.org 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.




More information about the R-help mailing list