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

R语言 seg包 update()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 00:25:14 | 显示全部楼层 |阅读模式
update(seg)
update()所属R语言包:seg

                                        Update an Object of Class SegLocalEnv
                                         更新类SegLocalEnv对象

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

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

Update an existing object of class SegLocalEnv.
更新现有的对象类SegLocalEnv。


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


  ## S3 method for class 'SegLocalEnv'
update(object, coords, data, env, proj4string, ...)



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

参数:object
an object of class LocalEnv to be updated.
一个的类LocalEnv的对象进行更新。


参数:coords
an optional object of class matrix containing coordinates of the data points (each row is a point).
一个可选的对象的类matrix包含的数据点(每行是一个点)坐标。


参数:data
an optional object of class matrix containing the population of each group at each data point. The number of rows in "data" should equal the number of points in "coords", and the number of columns should be greater than one (at least two population groups are required).
一个可选的对象类matrix在每个数据点包含每个组的人口。在数据的行数应等于在坐标的点的数量,和列的数目应该大于1(需要至少两个群体)。


参数:env
an optional object of class matrix containing the local environment parameters. Must be the same dimensions as "data".
一个可选的对象的类matrix包含本地环境参数。必须是相同的尺寸为“数据”。


参数:proj4string
an optional projection string of class CRS.
一个可选的投影串类CRS。


参数:...
ignored.
忽略不计。


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

An object of class SegLocalEnv.
对象的类SegLocalEnv。


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



Seong-Yun Hong




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

SegLocalEnv, getSegLocalEnv, SegLocalEnv-class
SegLocalEnv,getSegLocalEnv,SegLocalEnv-class


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


# Create a random data set with 50 data points and 3 population groups[创建一个随机的数据集有50个数据点和3的人口群体]
xy <- matrix(runif(100), ncol = 2)
pop <- matrix(runif(150), ncol = 3)
localenv <- SegLocalEnv(coords = xy, data = pop)
print(localenv)

# Update the projection information[更新的投影信息]
proj <- CRS("+proj=nzmg +datum=nzgd49")
localenv2 <- update(localenv, proj4string = proj)
print(localenv2)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-18 06:31 , Processed in 0.023256 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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