Is there an equivalent to the unix less
command that can be used within the R console?
相关问题
- How to get the return code of a shell script in lu
- R - Quantstart: Testing Strategy on Multiple Equit
- Using predict with svyglm
- Reshape matrix by rows
- Extract P-Values from Dunnett Test into a Table by
相关文章
- 使用2台跳板机的情况下如何使用scp传文件
- How to convert summary output to a data frame?
- In IntelliJ IDEA, how can I create a key binding t
- How to plot smoother curves in R
- shell中反引号 `` 赋值变量问题
- Paste all possible diagonals of an n*n matrix or d
- How get the time in milliseconds in FreeBSD?
- ess-rdired: I get this error “no ESS process is as
Not really. There are the commands
head()
andtail()
for showing the beginning and end of objectsprint()
for explicitly showing an object, and just its name followed by return does the samesummary()
for concise summary that depends on the objectstr()
for its structureand more. An equivalent for
less
would be a little orthogonal to the language and system. Where the Unix shell offers youless
to view the content of a file (which is presumed to be ascii-encoded), it cannot know about all types.R is different in that it knows about the object types which is why
summary()
-- as well as the whole modeling framework -- are more appropriate.Follow-up edit: Another possibility is provided by
edit()
as well asedit.data.frame()
.If the file is already on disk, then you can use
file.show
You might like my little toy here:
blahblah copyright by me, not Disney blahblah free for use, reuse, editing, sprinkling on your Wheaties, etc.
I save the print output to a file and then read it using an editor or
less
.Type the following in R
Then in a shell:
There is also
page()
which displays a representation of an object in a pager, like less.