depstat               package:climatol               R Documentation

_C_o_m_p_u_t_e _a_v_e_r_a_g_e_s _f_o_r _a _s_p_e_c_i_f_i_e_d _p_e_r_i_o_d

_D_e_s_c_r_i_p_t_i_o_n:

     Listing of monthly and annual average values for a specified
     period, from data generated by 'depudm'.

_U_s_a_g_e:

       depstat(varcli, anyi, anyf, anyip = anyi, anyfp = anyf, nm = 12,
         ndec = 1, vala = 2)

_A_r_g_u_m_e_n_t_s:

  varcli: Acronym of the name of the studied climatic variable, as in
          the data file name.

    anyi: Initial year of the data present in the file (four digits)

    anyf: Final year of the data present in the file (four digits)

   anyip: First year of the desired period (>='anyi', with 4 digits)

   anyfp: Last year of the desired period (<='anyf', with 4 digits)

      nm: Number of series in each station. (Default=12, for monthly
          data).

    ndec: Number of decimal places to be saved in file 'VAR_AI-AF.dep'

    vala: Kind of annual value:

          _1: Sum of monthly values,

          _2: Average of monthly values,

          _3: Maximum monthly value,

          _4: Minimum monthly value.

_D_e_t_a_i_l_s:

     Purged data are read from file 'VAR_AI-AF.dep', generated by
     'depudm', while the average data for the specified period (ai-af)
     are saved in 'VAR_ai-af.med'

_V_a_l_u_e:

     This function does not return any value.

_S_e_e _A_l_s_o:

     'depudm'

_E_x_a_m_p_l_e_s:

       #Function depudm must be run first (see the example), to create
       #  the file 'PTOT_51-00.dep'. Then you can run:
       ## Not run: depstat("PTOT",1951,2000,1971,2000,vala=1)
       #See the results in the file 'PTOT_71-00.med' created by depstat.

