查看View()函数的1000多个观察值

时间:2014-11-28 09:35:07

标签: r view rstudio

我正在使用RStudion,当我使用View()命令时,我只能看到前1000行。 是否可以获得超过1000行?或少于1000行?是否有可能在500:1000?

范围内进行观测

提前致谢。

1 个答案:

答案 0 :(得分:2)

可能会发生:

我们假设您有一个名为df的data.frame,它有2000行和2列。要查看所有这些内容,您需要在控制台上明确键入:

utils::View(df) #however this will open a new separate window to view all the records.

要查看data.frame的500:1000记录,只需执行以下操作:

utils::View(df[500:1000,]) #i.e. use the standard way of slicing the data.frame in the function.

希望这有帮助。