Terry Mu wrote:

hi,

I got some questions on using R,

1. How do I check and edit definition of an object?

for example,



x <- 1:100



then after a while I want to check how x is defined.

list(x) or whatever functions I know only list its
content, but I want to see its definition, without
scrolling up and down, and edit it like "fixing" a
function.



str(x)

gives a concise description of the structure of x

2. How to save my work in current session as a nice
script?

again, I want to save objects as they are defined, not
numbers, other than copy / paste. I tried dump(), etc.
In another word, how do you work with R?


Many people use the ESS (Emacs Speaks Statistics) package for Emacs or XEmacs for this. Although starting with Emacs or XEmacs is not simple, John Fox and others have written introductory guides for Windows users.

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to