Learn R Programming

RSEIS (version 2.4-5)

editDB: Edit Data Base

Description

Edit, or remove items from an RSEIS data base after it has been read in.

Usage

editDB(DB, w)

Arguments

DB
RSEIS data base
w
vector of index items to remove

Value

  • Returns a DB list

Details

The DB is a list. The program cycles through the elements of the list and removes all lnes that correspond to the idecies given in w.

See Also

makeDB, infoDB

Examples

Run this code
DB = makeDB('/media/disk-1/TUNG_2010', "2010", kind=2,Iendian=1, BIGLONG=FALSE )

sw = which(DB$yr>2011)

##########   remove the bad lines from the DB
DDB = editDB(DB, -sw)
infoDB(DB)

Run the code above in your browser using DataLab