na.omit: Handle Missing Values in Polygonal Objects

Description Usage Arguments Value Examples

View source: R/na.omit.polygonal.R

Description

The function omits missing polygons.

Usage

1
na.omit(object, ...)

Arguments

object

objects of the class "polygonal".

...

further arguments special methods could require.

Value

polygons an object of the class "polygonal" without missing values.

Examples

1
2
3
y <- psim(5, 3)
y[[1]] <- NA
na.omit(y) 

Example output

Attaching package:psdaThe following object is masked frompackage:stats:

    na.omit

[[1]]
            [,1]       [,2]
[1,] -1.36540940 -0.1712466
[2,] -1.36540940 -1.6853844
[3,] -0.05412761 -0.9283155

[[2]]
           [,1]       [,2]
[1,] -1.1438642 -0.2586030
[2,] -1.1438642 -1.3810693
[3,] -0.1717799 -0.8198361

[[3]]
          [,1]       [,2]
[1,] 0.2502718 1.14618299
[2,] 0.2502718 0.01021311
[3,] 1.2340506 0.57819805

[[4]]
           [,1]       [,2]
[1,] -1.1897841 -0.4290397
[2,] -1.1897841 -1.3936249
[3,] -0.3544287 -0.9113323

attr(,"class")
[1] "polygonal"

psda documentation built on July 1, 2020, 6:10 p.m.