-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfocus.Rd
33 lines (24 loc) · 1.11 KB
/
focus.Rd
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
33
% File man/focus.Rd
% Part of the DEVISE package, https://github.com/cwendorf/DEVISE
\name{focus}
\alias{focus}
\title{Focus}
\description{Selects the variables or factor levels of the specified frame.}
\usage{
\method{focus}{default}(...)
\method{focus}{data.frame}(frame, ...)
\method{focus}{formula}(formula, ...)
\method{focus}{wsm}(moments, ...)
\method{focus}{bsm}(moments, ...)
\method{focus}{cor}(corrs, ...)
}
\arguments{
\item{frame}{a set of (non-empty) numeric vectors of data values}
\item{formula}{a formula of the form \code{lhs ~ rhs} where \code{lhs} is a numeric variable giving the data values and \code{rhs} a factor giving the corresponding groups}
\item{moments}{a matrix/frame of descriptive/summary statistics}
\item{corrs}{a matrix/frame of correlations}
\item{...}{a set of variables or factor levels to be analyzed}
}
\value{
If the provided element is a data frame or a frame of statistics, the function will return a subset frame of the specified variables/levels. If the provided element is a formula, the function will return an updated formula that specifies only the specified factor levels.
}