| set-if-na {SeuratObject} | R Documentation |
NASet a default value depending on if an object is NA
x %NA% y x %na% y x %!NA% y x %!na% y
x |
An object to test |
y |
A default value |
For %NA%: y if x is NA;
otherwise x
For %!NA%: y if x is not
NA; otherwise x
1 %NA% 2 NA %NA% 2 1 %!NA% 2 NA %!NA% 2