getMonthlyMean(RMAWGEN)
getMonthlyMean()所属R语言包:RMAWGEN
Calclates the monthly means of a data frame corresponding to a period between year_min and year_max for stations listed in station
Calclates每月的数据框的装置相对应的一段时间中列出的站的站之间year_min和year_max
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Calclates the monthly means of a data frame corresponding to a period between year_min and year_max for stations listed in station
每月手段Calclatesyear_min和year_max在station上市电台之间的时段期间相对应的数据框的
用法----------Usage----------
getMonthlyMean(data, year_min = 1961, year_max = 1990,
station = names(data), no_date = FALSE,
origin = "1961-1-1", yearly = FALSE)
参数----------Arguments----------
参数:data
a dataframe containing daily data.
一个数据框,包含每日数据。
参数:year_min
start year
开始年份
参数:year_max
end year
结束年
参数:station
character vector of the IDs of the station where the data are requested
其中的数据被请求的站的ID的字符的矢量
参数:no_date
logical value if TRUE the function extractmonths is used. Default is FALSE. It is recommended if data does not contain columns for the dates.
TRUE如果的功能extractmonths使用的逻辑值。默认是FALSE。建议如果data不包含列的日期。
参数:yearly
logical value. If TRUE the monthly mean values are calculated for each year from year_min to year_max separately. Default is FALSE.
逻辑值。如果TRUE的月平均值计算每年从year_min到year_max分开。默认是FALSE。
参数:origin
date corresponding to the first row
迄今为止的第一行对应于
值----------Value----------
a matrix containing the requested monthly mean data where each month corresponds to a row and each station corresponds to a column or a list of such type of matrix in case the monthly mean values are calculated separetely for each year (if yearly is TRUE)
一个矩阵包含所要求的月平均每月对应行的数据,每个站对应的一列或矩阵的情况下,每年的月平均值计算购配件等类型的列表(如果yearly是TRUE)
注意----------Note----------
The input data frame data must have the following fields: year,month,day,variables_ID1,variables_ID2,... where the fields ,variables_ID1,variables_ID2,... contain the daily variables referred to the respective stations and the field names are replaced with the respective station ID. In case yearly is TRUE the returned output is a list of matrices whose names are the correspomding year.
输入数据框data必须具备以下领域:year,month,day,variables_ID1,variables_ID2,...在哪儿领域,variables_ID1,variables_ID2,...包含每日各站和各站ID字段名称替换变量。的情况下yearlyTRUE返回的输出是一个矩阵的名单,他们的名字是correspomding年。
(作者)----------Author(s)----------
Emanuele Cordano, Emanuele Eccel
参见----------See Also----------
extractyears
extractyears
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|