Displaying 2 results from an estimated 2 matches for "txtstop".
Did you mean:
txtsetup
2012 Dec 17
5
save to file
Hi,
What's the equivalent of "Save to File" from the R console File menu on an R routine? Just trying
to capture the whole R console into a text file when my code fails.
Felipe D. Carrillo
Supervisory Fishery Biologist
Department of the Interior
US Fish & Wildlife Service
California, USA
http://www.fws.gov/redbluff/rbdd_jsmp.aspx
[[alternative HTML version deleted]]
2012 Feb 14
1
txtStart creates a NULL file
...m=TRUE)
txtComment('This command provides the standard deviation of the profits data set')
sd(Forbes2000$profits, na.rm=TRUE)
txtComment('This command provides the average profit by country')
aggregate(Forbes2000$profits, by=list(Forbes2000$country), function(x) mean(x, na.rm=TRUE))
txtStop()
SessionInfo()
R version 2.13.2 (2011-09-30)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] en_CA.UTF-8/en_CA.UTF-8/C/C/en_CA.UTF-8/en_CA.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] Teach...