Learn R Programming

MetFns (version 3.2.2)

sol_date.table: Vectorized calculation of date corresponding to given value of solar longitude

Description

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

Usage

sol_date.table(solval,year)

Arguments

solval

numeric vector specifying solar longitude(s).

year

numeric vector specifying year(s).

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.

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.

See Also

sollong_date

Examples

Run this code
# NOT RUN {
## 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)
# }

Run the code above in your browser using DataLab