[R] Several simple but hard tasks to do with R
ottorino-luca.pantani at unifi.it
Thu Aug 20 17:18:19 CEST 2009
Rakknar ha scritto:
> 1. Make a log. I've been using Stata and there i have a great tool to
> register what the program do: the log file, wich it's a simple .txt file
> where Stata writes every output it makes (not graphics of course). When I
> wanted to make the same thing with R I started to use the function sink()
> but it only register the results of the commands (summaries for example) and
> not the commands itself, witch it's really uncomfortable because it's harder
> to find out to witch command that results come from.
A possible workaround could be:
as.character("rnorm(5, mean = 0, sd = 1)")
rnorm(5, mean = 0, sd = 1)
I know, it is not elegant, and a bit repetitive, but it could help.
More information about the R-help