File: sample.clones.Rd

package info (click to toggle)
r-cran-tcr 2.3.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 2,316 kB
  • sloc: cpp: 187; makefile: 5
file content (21 lines) | stat: -rw-r--r-- 616 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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datatools.R
\name{sample.clones}
\alias{sample.clones}
\title{Get a random subset from a data.frame.}
\usage{
sample.clones(.data, .n, .replace = T)
}
\arguments{
\item{.data}{Data.frame or a list with data.frames}

\item{.n}{Sample size if integer. If in bounds [0;1] than percent of rows to extract. "1" is a percent, not one row!}

\item{.replace}{if T then choose with replacement, else without.}
}
\value{
Data.frame of nrow .n or a list with such data.frames.
}
\description{
Sample rows of the given data frame with replacement.
}