| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/reshape.R |
| 3 |
\name{focus} |
| 4 |
\alias{focus} |
| 5 |
\title{Only show a subset of summary statistics after skimming} |
| 6 |
\usage{ |
| 7 |
focus(.data, ...) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{.data}{A \code{skim_df} object.} |
| 11 |
|
| 12 |
\item{...}{One or more unquoted expressions separated by commas. Variable |
| 13 |
names can be used as if they were positions in the data frame, so |
| 14 |
expressions like x:y can be used to select a range of variables.} |
| 15 |
} |
| 16 |
\description{ |
| 17 |
This function is a variant of \code{\link[dplyr:select]{dplyr::select()}} designed to work with |
| 18 |
\code{skim_df} objects. When using \code{focus()}, \code{skimr} metadata columns are kept, |
| 19 |
and \code{skimr} print methods are still utilized. Otherwise, the signature and |
| 20 |
behavior is identical to \code{\link[dplyr:select]{dplyr::select()}}. |
| 21 |
} |
| 22 |
\examples{ |
| 23 |
# Compare |
| 24 |
iris |> |
| 25 |
skim() |> |
| 26 |
dplyr::select(n_missing) |
| 27 |
|
| 28 |
iris |> |
| 29 |
skim() |> |
| 30 |
focus(n_missing) |
| 31 |
|
| 32 |
# This is equivalent to |
| 33 |
iris |> |
| 34 |
skim() |> |
| 35 |
dplyr::select(skim_variable, skim_type, n_missing) |
| 36 |
} |