File: naLast.Rd

package info (click to toggle)
r-cran-kutils 1.70%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,632 kB
  • sloc: sh: 13; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 731 bytes parent folder | download
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/variableKey.R
\name{naLast}
\alias{naLast}
\title{Sort key so that non missing values are first in the
value vector.}
\usage{
naLast(key, byvar = "name_new", valvar = "value_new",
  na.strings = c("\\\\.", "", "\\\\s+", "N/A"))
}
\arguments{
\item{key}{key, long or wide}

\item{byvar}{Default is "name_new", the column for sorting into blocks.}

\item{valvar}{The value variable on which sorting is to be done, "value_new".}

\item{na.strings}{vector of characters to be treated as NA}
}
\value{
sorted key, with blocks that have the missings last
}
\description{
Sort key so that non missing values are first in the
value vector.
}
\keyword{internal}