adhanMapMonth: Mapping prayer times for a month.

View source: R/adhanMapMonth.R

adhanMapMonthR Documentation

Mapping prayer times for a month.

Description

Mapping prayer times of a city to another city (for an entire month), based on a reference time. This is useful for those who live in cities with very long nights/days and wish to follow prayer times of another city.

Usage

adhanMapMonth(method, city, country, month, year, mapCity, mapCountry, mapBy)

Arguments

city

Character string with a city name. Defining this parameter is mandatory!

country

Character string that includes a country's name. see cointries() for full list of countries ! Defining this parameter is mandatory!

month

The month. either a number of a character string, e.g. "12". If missing, the current date (obtained from your system) will be used.

year

The year. either a number of a character string, e.g. "2021". If missing, the current date (obtained from your system) will be used.

mapCity

The city which its prayer time you want to follow.

mapCountry

The country where its prayer time you want to follow.

mapBy

The reference time to map. It can be either "Fajr", "Sunrise", "Dhuhr", "Asr", "Sunset", "Maghrib", "Isha", or "Imsak" !

Details

If mapBy is to set "Dhur", the "Dhur" prayer times in the 'map' location (e.g. Mecca, Saudi Arabia) is mapped to the "Dhur" prayer time in your location of interest (e.g. Helsinki, Finland). Then all the other prayer times in your location of interest (i.e. Helsinki) are calculated according to the differecne of other prayer times from "Dhur" in the mapping location (i.e. Mecca).

Value

Data frame showing the prayer times.

Author(s)

Ali Oghabian

See Also

adhanMonth adhanMap

Examples

adhanMapMonth(
  method="7",
  city="Helsinki",
  country="Finland",
  mapCity="Mecca",
  mapCountry="Saudi Arabia", mapBy="Dhuhr")

gacatag/adhan documentation built on April 6, 2024, 4:11 a.m.