找回密码
 注册
查看: 492|回复: 0

R语言 SpatioTemporal包 create.data.matrix()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 13:02:43 | 显示全部楼层 |阅读模式
create.data.matrix(SpatioTemporal)
create.data.matrix()所属R语言包:SpatioTemporal

                                         Create a Data Matrix from a mesa.data Structure
                                         创建一个数据矩阵从mesa.data结构中

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Creates a data matrix from a mesa.data structure, or from a set of vectors. Missing data are marked as NA.
从mesa.data结构,或从一组向量创建一个数据矩阵。丢失的数据被标记为NA。


用法----------Usage----------


create.data.matrix(mesa.data = NA, obs = mesa.data$obs$obs,
    date = mesa.data$obs$date, ID = mesa.data$obs$ID,
    subset = NA)



参数----------Arguments----------

参数:mesa.data
A data structure containing the observations, see mesa.data. Use either this or the obs, date, and ID inputs.  
的数据结构,其中包含的意见,请参阅mesa.data。使用或obs,date和ID输入。


参数:obs
A vector of observations, see mesa.data.  
一个向量的意见,请参阅mesa.data。


参数:date
A vector of observation times, see mesa.data.  
一个向量的观测时间,请参阅mesa.data。


参数:ID
A vector of observation locations, see mesa.data.  
一个向量的观察位置,请参阅mesa.data。


参数:subset
A subset of locations to extract the data matrix for.  This would be a  vector of strings that matches names in ID. A warning will be given  for each name not found in ID.  
来提取数据矩阵的一个子集的位置。这将是一个向量相匹配的字符串名称,ID。将给予每名没有发现ID的警告。


值----------Value----------

Returns a matrix with dimensions (number of timepoints)-by-(number of locations.) Row and column names of the matrix are taken as ID and sort(unique(date)) respectively.
返回一个矩阵尺寸(时间点)的矩阵的行和列的名字(的位置)。ID和sort(unique(date))分别。


(作者)----------Author(s)----------



Johan Lindstr枚m




参见----------See Also----------

Converts a mesa.data structure to a matrix, used internally by calc.smooth.trends. The data matrix can be used as input to SVD.smooth, SVD.smooth.cv, and SVD.miss.
转换mesa.data结构矩阵,内部calc.smooth.trends。可以使用的数据矩阵作为输入SVD.smooth,SVD.smooth.cv,和SVD.miss的。

See also create.data.model.
create.data.model。

For other data functions, see mesa.data.raw, mesa.data.model, default.LUR.list, <br> and construct.LUR.basis.
其它数据功能,请参阅mesa.data.raw,mesa.data.model,default.LUR.list,参考和construct.LUR.basis。


实例----------Examples----------


##load the data[#加载的数据。]
data(mesa.data)

##create a data matrix[#创建一个数据矩阵]
M1 <- create.data.matrix(mesa.data)
dim(M1)
head(M1)

##create data matrix for only a few locations[#创建一个数据矩阵只有少数几个位置]
M2 <- create.data.matrix(mesa.data, subset =
     c("60370002","60370016","60370113","60371002",
       "60371103","60371201","L001","L002"))
dim(M2)
head(M2)


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-6-11 05:28 , Processed in 0.023646 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表