File: orderCompletely.Rd

package info (click to toggle)
r-cran-rpf 1.0.11%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,484 kB
  • sloc: cpp: 5,364; sh: 114; ansic: 41; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 600 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dataframe.R
\name{orderCompletely}
\alias{orderCompletely}
\title{Order a data.frame by missingness and all columns}
\usage{
orderCompletely(observed)
}
\arguments{
\item{observed}{a data.frame holding ordered factors in every column}
}
\value{
the sorted order of the rows
}
\description{
Completely order all rows in a data.frame.
}
\examples{
df <- as.data.frame(matrix(c(sample.int(2, 30, replace=TRUE)), 10, 3))
mask <- matrix(c(sample.int(3, 30, replace=TRUE)), 10, 3) == 1
df[mask] <- NA
df[orderCompletely(df),]
}