% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-s3.R
\name{[.tidyped}
\alias{[.tidyped}
\title{Subset a tidyped object}
\usage{
\method{[}{tidyped}(x, ...)
}
\arguments{
\item{x}{A \code{tidyped} object.}

\item{...}{Arguments passed to the \code{data.table} \code{[} method.}
}
\value{
A \code{tidyped} object if the result is still a complete pedigree,
  otherwise a plain \code{data.table}.
}
\description{
Intercepts \code{data.table}'s \code{[} method for \code{tidyped} objects.
After subsetting, the method checks whether the result is still a valid
pedigree (all referenced parents still present). If so, \code{IndNum},
\code{SireNum}, and \code{DamNum} are rebuilt and the \code{tidyped} class
is preserved. If the pedigree becomes structurally incomplete (missing parent
records), the result is degraded to a plain \code{data.table} with a warning.
Column-only selections (missing core columns) also return a plain
\code{data.table}.
}
