Since R is open source, the source code for packages is stored on CRAN
mirrors. A little navigation gets us to
https://cloud.r-project.org/src/contrib/Archive/car/
Loading car_1.2-16.tar.gz, the last version before car_2.0 gives the code
for Ask():
# change an argument to a function interactively (J. Fox)
Ask<-function(arg, fun, ...){
fun<-fun
repeat{
value<-readline(paste("Enter",deparse(substitute(arg)),": "))
if (value == "") break()
eval(parse(text=paste("fun(",deparse(substitute(arg)),"=",value,",...)")))
}
}
Running this code will create the function.
-------------------------------------
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352
-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Ashim
Kapoor
Sent: Wednesday, June 22, 2016 12:35 AM
To: Fox, John
Cc: R-help
Subject: Re: [R] [FORGED] Ask function missing in package car
Dear Sir,
Thank you.
Best Regards,
Ashim
On Wed, Jun 22, 2016 at 10:47 AM, Fox, John <jfox at mcmaster.ca> wrote:
-----Original Message-----
From: Ashim Kapoor [mailto:ashimkapoor at gmail.com]
Sent: June 21, 2016 10:10 PM
To: Fox, John <jfox at mcmaster.ca>
Cc: Marc Schwartz <marc_schwartz at me.com>; R-help <r-help at r-project.org
Subject: Re: [R] [FORGED] Ask function missing in package car
Dear Sir,
Many thanks for your reply. May I ask,was it replaced by another
It seems interesting enough to have a function like that.
I guess it didn't seem that useful to us. You can simply modify commands
in a programming editor.
Best,
John
Best Regards,
Ashim
On Wed, Jun 22, 2016 at 10:35 AM, Fox, John <jfox at mcmaster.ca
<mailto:jfox at mcmaster.ca> > wrote:
Dear Ashim and Marc,
Sorry to chime in late. As Marc suggests, the Ask() function went
way of the dodo before the second edition of the book (coauthored with
Weisberg, and retitled "An R Companion to Applied Regression") was
published.
Best,
John
-----------------------------
John Fox, Professor
McMaster University
Hamilton, Ontario
Canada L8S 4M4
Web: socserv.mcmaster.ca/jfox <http://socserv.mcmaster.ca/jfox>
> -----Original Message-----
> From: R-help [mailto:r-help-bounces at r-project.org <mailto:
bounces at r-project.org> ] On Behalf Of Ashim
> Kapoor
> Sent: June 21, 2016 7:35 PM
> To: Marc Schwartz <marc_schwartz at me.com
<mailto:marc_schwartz at me.com> >
> Cc: R-help <r-help at r-project.org <mailto:r-help at r-project.org>
> Subject: Re: [R] [FORGED] Ask function missing in package car
>
> Dear Mark,
>
> Many thanks.
>
> Best Regards,
> Ashim
>
> On Wed, Jun 22, 2016 at 7:45 AM, Marc Schwartz
<marc_schwartz at me.com <mailto:marc_schwartz at me.com> >
> > released on 2010-07-26. So it has been gone for about 6
> >
> > The version of car that is used in the documentation that you
> > using is 1.2-16, which is from 2009-10-11.
> >
> > So the online documentation source is outdated.
> >
> > I see that the Ask() function is listed in the first edition
> > book, which I have on my shelf, but I don't have the second
> > know if that had been updated. A review of the index for the
> > edition on Amazon.com would suggest that it was removed for
> >
> > Regards,
> >
> > Marc Schwartz
> >
> >
> > > On Jun 21, 2016, at 8:29 PM, Ashim Kapoor
<ashimkapoor at gmail.com <mailto:ashimkapoor at gmail.com> >
> > >
> > > I am reading the book An R and S plus companion to Applied
> > > Regression
> > > found this function there.
> > >
> > > Googling gave me the link [1].
> > >
> > > 1.
> > >
> > > On Wed, Jun 22, 2016 at 6:57 AM, Rolf Turner
> > > <r.turner at auckland.ac.nz <mailto:r.turner at auckland.ac.nz>
> > >> On 22/06/16 13:06, Ashim Kapoor wrote:
> > >>
> > >>> Dear All,
> > >>>
> > >>> my details:-
> > >>>
> > >>>> sessionInfo()
> > >>>>
> > >>> R version 3.3.0 (2016-05-03)
> > >>> Platform: x86_64-pc-linux-gnu (64-bit) Running under:
> > >>>
> > >>> locale:
> > >>> [1] LC_CTYPE=en_IN LC_NUMERIC=C
> > >>> [4] LC_COLLATE=en_IN LC_MONETARY=en_IN
> > >>> [7] LC_PAPER=en_IN LC_NAME=C
> > >>> [10] LC_TELEPHONE=C LC_MEASUREMENT=en_IN
> > >>>
> > >>> attached base packages:
> > >>> [1] stats graphics grDevices utils datasets
> > >>>
> > >>> other attached packages:
> > >>> [1] car_2.1-2
> > >>>
> > >>> loaded via a namespace (and not attached):
> > >>> [1] Rcpp_0.12.5 lattice_0.20-33 MASS_7.3-43
> > >>> grid_3.3.0
> > >>> [5] nlme_3.1-128 MatrixModels_0.4-1 SparseM_1.7
> > >>> minqa_1.2.4
> > >>> [9] nloptr_1.0.4 Matrix_1.2-6 splines_3.3.0
> > >>> lme4_1.1-12
> > >>> [13] pbkrtest_0.4-6 parallel_3.3.0 mgcv_1.8-7
> > >>> nnet_7.3-10
> > >>> [17] quantreg_5.24
> > >>>
> > >>>> attach(UN)
> > >>>>
> > >>>> # enter the power-transformation parameter # start with
> > >>>> function(p) qq.plot(box.cox(gdp, p),
> > >>>>
> > >>> + ylab=paste("transformed gdp, power =",p)))
> > >>> Error: could not find function "Ask"
> > >>>
> > >>> What can I do to correct this?
> > >>>
> > >>
> > >> What led you to believe that such a function exists (in
> > >> or anywhere else for that matter)? And what exactly do
> > >> for you?
> > >>
> > >> cheers,
> > >>
> > >> Rolf Turner
> > >>
> > >> --
> > >> Technical Editor ANZJS
> > >> Department of Statistics
> > >> University of Auckland
> > >> Phone: +64-9-373-7599 ext. 88276
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org <mailto:R-help at r-project.org> mailing
To UNSUBSCRIBE and more, see