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

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

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

                                        Mercer and Hall wheat yield data
                                         默瑟和霍尔小麦产量数据

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

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

Mercer and Hall wheat yield data, based on version in Cressie (1993), p. 455.
美世和霍尔小麦产量数据,根据经验Cressie(1993年),P的版本。 455。


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


data(wheat)



格式----------Format----------

The format of the object generated by running data(wheat) is a three column data frame made available by Hongfei Li. The example section shows how to convert this to the object used in demonstrating the aple function, and is a: Formal class 'SpatialPolygonsDataFrame' [package "sp"] with 5 slots; the data slot is a data frame with 500 observations on the following 6 variables.
由运行data(wheat)是一个三列的数据框由鸿飞李的对象生成的格式。 “示例”部分显示了如何转换使用展示aple功能的对象,是一个正式的类的SpatialPolygonsDataFrame“包”SP“5个插槽的数据槽是一个数据框500以下6个变量的观察。




lat local coordinates northings ordered north to south
lat局部坐标北向有序北到南




yield Mercer and Hall wheat yield data
yield的Mercer和霍尔小麦产量数据




r rows south to north; levels in distance units of plot centres
r行南到北,图中心的水平距离单位




c columns west to east; levels in distance units of plot centres
c列西向东的图中心的水平距离单位




lon local coordinates eastings
lon局部坐标系东进




lat1 local coordinates northings ordered south to north
lat1局部坐标下令南到北的北向


源----------Source----------

Cressie, N. A. C. (1993) Statistics for Spatial Data. Wiley, New York, p. 455.
空间数据的经验Cressie,的NAC(1993年)统计。 Wiley,纽约,第455。


参考文献----------References----------



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


## Not run: [#不运行:]
data(wheat)
names(wheat) <- c('lon','lat','yield')
wheat$lat1 <- 69 - wheat$lat
wheat$r <- factor(wheat$lat1)
wheat$c <- factor(wheat$lon)
wheat_sp <- wheat
coordinates(wheat_sp) <- c("lon", "lat1")
wheat_spg <- wheat_sp
gridded(wheat_spg) <- TRUE
wheat_spl <- as(wheat_spg, "SpatialPolygons")
df <- as(wheat_spg, "data.frame")
row.names(df) <- sapply(slot(wheat_spl, "polygons"),
function(x) slot(x, "ID"))
wheat <- SpatialPolygonsDataFrame(wheat_spl, data=df)

## End(Not run)[#(不执行)]
wheat <- readShapeSpatial(system.file("etc/shapes/wheat.shp",
package="spdep")[1])

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-18 03:11 , Processed in 0.028067 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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