Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"more" like command in R console [duplicate]

Tags:

r

rstudio

Is there any command in R console which behaves same as "more" command in Linux? Consider this

>x=list(seq(100000), seq(100000))
>x

It displays everything at one go and shows message at the end "reached getOption("max.print")". Scrolling back to top doesn't show me the first values. I need a command like more(x) which will show more and more by pressing space bar.

like image 427
d.putto Avatar asked Feb 20 '15 12:02

d.putto


People also ask

How do you copy and paste in RStudio console?

If R is ready to accept commands, the R console shows a > prompt. If it receives a command (by typing, copy-pasting or sent from the script editor using Ctrl-Enter ), R will try to execute it, and when ready, show the results and come back with a new > -prompt to wait for new commands.

What does a plus mean in the console in R?

If a plus sign ("+") appears while in the console, it means that R is wanting you to enter some additional information. Press escape ("esc") and hit return to get back to the ">" prompt.

How do I run a Rscript in RStudio?

An R script is just a plain text file that you save R code in. You can open an R script in RStudio by going to File > New File > R script in the menu bar. RStudio will then open a fresh script above your console pane, as shown in Figure 1-7.


1 Answers

Would ?page do the trick? e.g., page(list(a = rnorm(1000), b=rnorm(1000)))

like image 75
Matthew Plourde Avatar answered Oct 20 '22 04:10

Matthew Plourde