File: delete_response.Rd

package info (click to toggle)
r-cran-hardhat 1.2.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,656 kB
  • sloc: sh: 13; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 846 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/delete-response.R
\name{delete_response}
\alias{delete_response}
\title{Delete the response from a terms object}
\usage{
delete_response(terms)
}
\arguments{
\item{terms}{A terms object.}
}
\value{
\code{terms} with the response sections removed.
}
\description{
\code{delete_response()} is exactly the same as \code{delete.response()}, except
that it fixes a long standing bug by also removing the part of the
\code{"dataClasses"} attribute corresponding to the response, if it exists.
}
\details{
The bug is described here:

\url{https://stat.ethz.ch/pipermail/r-devel/2012-January/062942.html}
}
\examples{

framed <- model_frame(Species ~ Sepal.Width, iris)

attr(delete.response(framed$terms), "dataClasses")

attr(delete_response(framed$terms), "dataClasses")
}