Skip to contents

Replace NAs in a list by NULLs.

Usage

replace_list_nas_with_nulls(l)

Arguments

l

A list.

Value

The list l with NAs replaced by NULLs.

Examples

replace_list_nas_with_nulls(list(NA, a = 1, b = NA))
#> [[1]]
#> NULL
#> 
#> $a
#> [1] 1
#> 
#> $b
#> NULL
#>