Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/django/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
()与;[]在R中_R - Fatal编程技术网

()与;[]在R中

()与;[]在R中,r,R,当我写下以下内容时: tempx <- tempx (-1, c(-4, -2:-20)) tempx()用于调用函数[]用于子集向量、数组和矩阵(以及其他此类对象) 如果您还没有阅读,我建议您也可以在R中键入help.start()。特别是,您可能想看看2.1节向量和赋值和5.2数组索引。数组的子部分()表示函数-参见平均值(5),[]表示子部分,参见?”[”。不需要在(或)前面加空格[ tempx <- tempx [-1, c(-4, -2:-20)]

当我写下以下内容时:

tempx <- tempx (-1, c(-4, -2:-20))
tempx
()
用于调用函数<代码>[]
用于子集向量、数组和矩阵(以及其他此类对象)


如果您还没有阅读,我建议您也可以在R中键入
help.start()
。特别是,您可能想看看2.1节向量和赋值5.2数组索引。数组的子部分

()表示函数-参见平均值(5),[]表示子部分,参见?”[”。不需要在(或)前面加空格[
tempx <- tempx [-1, c(-4, -2:-20)]