remove.rows: Remove Rows

Description Usage Arguments Value Author(s) Examples

Description

remove.na.rows removes rows which contain at least 1 NA remove.all.na rows removes rows which are all NA's

Usage

1
2

Arguments

x

An Fts object

Value

an Fts object

Author(s)

Whit Armstrong

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
x <- fts(index=seq(from=Sys.Date(),by="days",length.out=10),matrix(rnorm(20),ncol=2))

x[5,1] <- NA
x[10,] <- NA

print(x)

## will drop rows where NA's appear
## in any of the columns
remove.na.rows(x)

## will drop rows where NA's appear
## in all of the columns
remove.all.na.rows(x)

armstrtw/fts documentation built on June 3, 2017, 10:02 p.m.