nn | R Documentation |
Internal function: return character(0) instead of NULL. This is sometimes needed not to return error when applying some functions.
nn(x)
x |
Input variable |
character(0)
if x==NULL
, x
elsewhere
License: GPL 3.0
Luigi Ranghetti, phD (2019)
L. Ranghetti, M. Boschetti, F. Nutini, L. Busetto (2020). "sen2r": An R toolbox for automatically downloading and preprocessing Sentinel-2 satellite data. Computers & Geosciences, 139, 104473. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.cageo.2020.104473")}, URL: https://sen2r.ranghetti.info/.
tryCatch(basename(NULL), error = print) # error
basename(character()) # ok
basename(sen2r:::nn(NULL)) # ok
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.