Learn R Programming

MetFns (version 1.0)

filter.date: Selection of visual meteor data by date(s)

Description

Selects data for a given visual meteor dataset and specified year, month and day (or days).

Usage

filter.date(data, year, month, day.beg, day.end = day.beg)

Arguments

data
data frame consisting of visual meteor data (rate or magnitude data).
year
numeric vector of length 4 specifying year.
month
numeric vector specifying month of the year.
day.beg
numeric vector specifying the beginning day.
day.end
numeric vector specifying the ending day. By default, day.end is set to be equal to day.beg.

Value

  • filter.date returns data frame with the same number of columns as the argument data, containing observations which correspond to the specified date or period of days.

Details

Day given in meteor datasets corresponds to the beginning of the observing time period. In selection of the data, day corresponding to the middle of the observing time period is used. If argument day.end is not provided, the function filter.date selects data for a given date, otherwise it selects data for a period of days, bounded by day.beg and day.end.

References

http://www.imo.net/data/visual Rendtel J. and Arlt R., editors (2008). IMO Handbook For Meteor Observers. IMO, Potsdam.

See Also

filter

Examples

Run this code
## select visual meteor data for the period from 5-15 August 2007

## rate data for the year 2007
data(rate07)
filter.date(rate07,year=2007,month=8,day.beg=5,day.end=15)

## magnitude data for the year 2007
data(magn07)
filter.date(magn07,year=2007,month=8,day.beg=5,day.end=15)

Run the code above in your browser using DataLab