sollong_date.table: Vectorized calculation of date corresponding to given value...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Calculates table of dates corresponding to the given values of solar longitude and year.

Usage

1
sol_date.table(solval,year)

Arguments

solval

numeric vector specifying solar longitude(s).

year

numeric vector specifying year(s).

Details

The function sol_date.table represents vectorized version of function sollong_date. It calculates table of dates corresponding to multiple values of either solar longitude or year.

Value

sol_date.table returns dataframe. Each column is object of POSIXct class, calendar dates in "%Y-%m-%d %H:%M:%S" format (UTC timezone). Column names are solar longitudes and row names are years.

Author(s)

Kristina Veljkovic

See Also

sollong_date

Examples

1
2
3
4
5
## calculate dates corresponding to the solar longitudes 347-350, year 2016 
sol_date.table(347:350,year=2016)

## calculate dates corresonding to the solar longitude 347, years 2015-2017
sol_date.table(347,year=2015:2017)

Example output

Loading required package: astroFns
Loading required package: lubridate

Attaching package:lubridateThe following objects are masked frompackage:base:

    date, intersect, setdiff, union

Loading required package: plotrix
Loading required package: pracma

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

    filter

                     347                 348                 349
2016 2016-03-07 08:55:34 2016-03-08 08:54:39 2016-03-09 08:54:29
                     350
2016 2016-03-10 08:55:05
                     347
2015 2015-03-08 02:52:02
2016 2016-03-07 08:55:34
2017 2017-03-07 15:03:54

MetFns documentation built on May 1, 2019, 6:28 p.m.