11% File  src / library / stats / man / delete.response.Rd 
22% Part  of  the  R  package , https : // www.R - project.org 
3- % Copyright  1995 - 2024  R  Core  Team 
3+ % Copyright  1995 - 2025  R  Core  Team 
44% Distributed  under  GPL  2  or  later 
55
66\name {delete.response }
@@ -11,6 +11,8 @@ delete.response(termobj)
1111reformulate(termlabels , response  =  NULL , intercept  =  TRUE , env  =  parent.frame())
1212
1313drop.terms(termobj , dropx  =  NULL , keep.response  =  FALSE )
14+ 
15+ termobj [i ]
1416}
1517\alias {reformulate }
1618\alias {drop.terms }
@@ -19,13 +21,13 @@ drop.terms(termobj, dropx = NULL, keep.response = FALSE)
1921\arguments {
2022  \item {termobj }{a  \code {\link [= terms.object ]{terms }} object. }
2123  \item {termlabels }{character  vector  giving  the  right - hand  side  of  a 
22-     model  formula.   Cannot  be  zero - length. }
24+     model  formula.   May  be  zero - length. }
2325  \item {response }{a  character  string , symbol  or  call  giving  the  left - hand 
2426    side  of  a  model  formula , or  \code {NULL }. }
2527  \item {intercept }{logical :  should  the  formula  have  an  intercept ?}
2628  \item {env }{the  \code {\link {environment }} of  the  \code {\link {formula }}
2729    returned. }
28-   \item {dropx }{a  numeric  vector  indexing  \code {labels(termobj )}
30+   \item {dropx ,  i }{a  numeric  vector  indexing  \code {labels(termobj )}
2931    (that  is , the  \code {" term.labels" attribute  of  \code {termobj }),
3032    indicating  terms  to  be  dropped  from  the  right - hand  side  of  the 
3133    model , or  \code {NULL } (default ) to  keep  all  terms. }
@@ -48,10 +50,10 @@ drop.terms(termobj, dropx = NULL, keep.response = FALSE)
4850  back  compatibly , with  a  deprecation  warning. 
4951}
5052\value {
51-   \code {delete.response } and  \code {drop.terms } return  a  \code {terms }
53+   \code {delete.response } and  \code {drop.terms } return  a  \code {\ link { terms } }
5254  object. 
5355
54-   \code {reformulate } returns  a  \code {formula }. 
56+   \code {reformulate } returns  a  \code {\ link { formula } }. 
5557}
5658\seealso {\code {\link {terms }}}
5759
0 commit comments