LoadData(VecStatGraphs2D)
LoadData()所属R语言包:VecStatGraphs2D
Data loading and conversion of measured and real coordinates, rectangular coordinates, and polar coordinates
数据加载和转换的测量和实时坐标,直角坐标和极坐标
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function reads data from a text file containing data of coordinates. Data can be read as measured and real coordinates, rectangular coordinates or polar coordinates. This functions returns a matrix with all possible data conversions according to mathematical direction (0 grades E counterclockwise) or topographical direction (0 grades N clockwise).
这个函数读取数据从一个文本文件,其中包含数据的坐标系。数据可以读取测量值和实际坐标,直角坐标或极坐标。这个函数返回一个矩阵,根据数学方向(0级Ë逆时针)或地形的方向(0级Ň顺时针方向)的所有可能的数据转换。
用法----------Usage----------
LoadData(FileName, Type = 2, Direction = 2)
参数----------Arguments----------
参数:FileName
File name to load data
文件名来加载数据
参数:Type
Integer value that indicates the type of data contained in the file. Type 1 = Measured and Real, Type 2= Rectangular, Type 3 = Polar
整数,表示文件中所包含的数据的类型。类型1 =测量值和真实的,2型矩形,类型3 =极
参数:Direction
Integer value that indicates the direction of the data. Direction 1 = the mathematical direction (0 grades E counterclockwise). Direction 2 = the topographical direction (0 grades N clockwise)
整数值,指示方向的数据。方向1 =数学方向(0级Ë逆时针)。方向2 =地形的方向(0级Ň顺时针方向)
Details
详细信息----------Details----------
Input files must be in a certain format for the data type. By default, the type is rectangular with topographical direction (Type = 2 and Direction = 2).
输入文件必须是在一定格式的数据类型。默认情况下,类是长方形的地形方向(输入= 2,方向= 2)。
The measured and real type contains four columns. The first two columns represent the X and Y coordinates of the measured data, and the last two columns represent the coordinates of the real data; each row corresponds to one set of data.
测得的和真正的类型包含四个列。的前两列代表测得的数据的X和Y坐标,和最后两列表示的坐标的真实数据,每一行对应于一组数据。
The rectangular type contains two columns, the first column is the X coordinate, and the second column is the Y coordinate; each row corresponds to one set of data. The X coordinates and Y coordinates are obtained from the difference between the measured coordinates and the real coordinates.
该矩形包含两列的类型中,第一列是X坐标,第二列是Y坐标;每一行对应于一组数据。从所测得的坐标和真正的坐标之间的差异得到的X坐标和Y坐标。
The polar type contains two columns. The first column represents the module, and the second column represents the azimuth; each row corresponds to one set of data.
极型包含两列。第一列表示的模块,和第二列表示方位角,每一行对应于一组数据。
It is very important to choose the correct sense of direction, because the output data depend on this variable. The mathematical direction chooses the origin of the degrees in the X coordinate axis, rotating counter-clockwise. The topographical direction chooses the origin of the degrees in the Y coordinate axis, rotating clockwise. Mathematical direction and topographical direction follow a sexagesimal angular system.
选择正确的方向感是非常重要的,因为依赖于这个变量的输出数据。的数学方向选择的原点,在X坐标轴度,逆时针旋转。地形的方向选择的原点的Y坐标轴的度,顺时针旋转。数学的方向和地形跟随六十进位的角度测量系统。
Typical usages are
典型的用法是
值----------Value----------
The function returns a nx9 matrix size, where n is the number of data. Column 1 represents the module; column 2 represents the azimuth; column 3 represents the X coordinate (the difference between the X measured coordinate and the X real coordinate); the column 4 represents the Y coordinate (the difference between the Y measured coordinate and the Y real coordinate); the column 5 represents the direction and type of input data; columns 6 and 7 represent the X and Y coordinates, respectively, of the measured data, and columns 8 and 9 represent the X and Y coordinates, respectively, of the real data.
该函数返回一个nx9矩阵的大小,其中,n是数据的数目。第1栏表示模块,第2栏表示的方位角;第3栏表示的X坐标(在X的测量坐标和X的实际坐标之间的差异)的第4列表示的Y坐标(测得的Y之间的差异的坐标和y为实坐标);列5表示的方向和类型的输入数据;列6和7表示的X和Y坐标,分别测得的数据,和列的图8和图9表示的X和Y坐标,分别真实的数据。
Columns 6, 7, 8 and 9 will have value only if the input data are of type 1 (measured and real).
第6列,第7,第8和9的值将是只有当输入数据的第1类(测量值和真实的)。
(作者)----------Author(s)----------
Ruiz-Cuetos, J.C., <a href="mailto:bilba_t@hotmail.com">bilba_t@hotmail.com</a>, Polo, M.E., <a href="mailto:mepolo@unex.es">mepolo@unex.es</a>, Rodriguez, P.G. <a href="mailto:pablogr@unex.es">pablogr@unex.es</a>
参考文献----------References----------
参见----------See Also----------
DrawHistogram, DrawModuleAndAzimuthDistribution, DrawDensityMap, AllAzimuthStatistics, AllModuleStatistics, ValuationOfUniformity.
DrawHistogram,DrawModuleAndAzimuthDistribution,DrawDensityMap,AllAzimuthStatistics,AllModuleStatistics,ValuationOfUniformity。
实例----------Examples----------
FileName<-system.file("data/RectangularData.txt", package="VecStatGraphs2D")
LoadData(FileName, Type=2, Direction=2)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|