head(spam)
head()所属R语言包:spam
Return the First or Last Part of an Object
返回的第一个或最后一个对象的部分
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Returns the upper left or lower right part of a spam object.
返回左上或右下部的一个spam对象。
用法----------Usage----------
head(x, ...)
tail(x, ...)
# head.spam(x, n = 6L, m = n, \dots)
# tail.spam(x, n = 6L, m = n, addrownums = TRUE, \dots)
参数----------Arguments----------
参数:x
a spam object
spam对象
参数:n
a single integer. If positive, size for the resulting object: number of elements for a vector (including lists), rows for a matrix or data frame or lines for a function. If negative, all but the n last/first number of elements of x.
一个整数。如果是正数,大小,所产生的对象:一些元素的矢量(包括列表),行矩阵或数据框或行的功能。如果为负,但n最后一个/第一个元素的x。
参数:m
similar to n but for the number of columns.
类似n的列数。
参数:addrownums
create row and column namves them from the selected elements.
创建行和列namves他们选定的元素。
参数:...
arguments to be passed to or from other methods.
参数被传递到或从其他方法。
Details
详细信息----------Details----------
For matrices, 2-dim tables and data frames, head() (tail()) returns the first (last) n rows and m columns when n > 0 or all but the last (first) n rows when n < 0 (with similar behavior for m).
对于矩阵,2暗淡表,帧和数据框,head()(tail())返回第一个(最后)n行m列n > 0或但最后一个(第)n的行n < 0(类似行为m)。
tail() will add row and column names of the form "[n,]" and "[,n]" to the result, so that it looks similar to the last lines and columns of x when printed. Setting addrownums = FALSE suppresses this behaviour.
tail()添加行和列的形式的名称"[n,]"和"[,n]"的结果,因此,它看起来类似x打印时的最后几行和列。设置addrownums = FALSE抑制这种行为。
A method for spam.chol.NgPeyton objects is exported as well.
spam.chol.NgPeyton对象的方法导出。
值----------Value----------
An regular matrix.
一个定期矩阵。
(作者)----------Author(s)----------
Reinhard Furrer
实例----------Examples----------
head( precmat.RW2( 10))
tail( precmat.season(n=10, season=3), n=4, m=10)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|