File: if_null_then.Rd

package info (click to toggle)
r-cran-openxlsx 4.2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,328 kB
  • sloc: cpp: 1,867; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 378 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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{if_null_then}
\alias{if_null_then}
\alias{\%||\%}
\title{If NULL then ...}
\usage{
x \%||\% y
}
\arguments{
\item{x}{A value to check}

\item{y}{A value to substitute if x is null}
}
\description{
Replace NULL
}
\examples{
\dontrun{
x <- NULL
x <- x \%||\% "none"
x <- x \%||\% NA
}

}