Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

editDB

Edit Data Base


Description

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

Usage

editDB(DB, w)
pathDB(DB,  path1="", path2="")

Arguments

DB

RSEIS data base

w

vector of index items to remove

path1

character for old path

path2

character for new path to replace old path

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.

Value

Returns a DB list

Note

A problem arises if the makeDB program reads in, or tries to read in files that have not data base header information. This program can eliminate these from the data base.

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

See Also

makeDB, infoDB

Examples

## Not run: 

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)

#############  to change the path names if the data
##   moves to a different server:

###for example: 
###  

path1<-"/data/wadati/soju"
path2<-"/mnt"

newDB <- pathDB(DB, path1, path2 )


## End(Not run)

RSEIS

Seismic Time Series Analysis Tools

v3.9-3
GPL (>= 2)
Authors
Jonathan M. Lees [aut, cre], Jake Anderson [ctb], Leonard Lisapaly [ctb], Dave Harris [aut, cph]
Initial release
2020-08-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.