Displaying 20 results from an estimated 30000 matches similar to: "Determining files opened by an R session"
2009 Mar 01
2
Formatted text output
How does one write formatted, say "C style", output to a text file. I want something like "y=mx+b" for my linear regressions but with m and b derived from the fit objects. Also, how does one go about extracting just the slope or intercept from such an object. - Greg
[[alternative HTML version deleted]]
2008 Oct 13
4
Add notes to sink output
Hello,
How can I add notes (i.e. text) to a sink output?
sink("test.txt")
#This text will describe the test
summary(x)
sink()
How can I add that text above to the sink output?
Thanks,
Michael
[[alternative HTML version deleted]]
2007 Jul 05
2
sink() and source()
hello,
I have a problem running a R script actually I'm using source() and sink() and it doesn't work
source("T:/agents/melyakhlifi/R/essai_rep.r")
to execute a file and the file contain
sink("T:/agents/melyakhlifi/R/sortie.html")
cat("<html><body><pre>\n")
matrix.merge2
cat("</pre></body></html>\n")
sink()
I
2008 Sep 24
2
Add "title" in sink output and possibility of plot-like output for text
Hello,
I have been using sink to create text file outputs.
>sink("summ_model1and2.txt")
> summary(model1)
> summary(model2)
> sink()
Q1: Is there a way I could add a line of the text above the summary to act
like a title?
Also, I have been using the following to save plots from the lm function:
> pdf("small.bin.ENN_MN_withQ.pdf")
> par(mfrow = c(2, 2), oma
2008 Nov 25
3
Line color based on data values?
Hi all
Does anyone know if it is possible when plotting a line or scatter plot, to selectively color the data points based on the data value? i.e. if plotting say the percentage change in stock price movements, to color +ve points in green and -ve points in red? And extending this to a user-defined range of colors based on the quartile of the data points?
Thanks
Rory
Rory Winston
RBS Global
2009 Feb 17
2
printing out the summary for lm into a txt file
Hi All,
I am trying to run several linear regressions and print out the summay and
the anova reslts on the top of
each other for each model. Below is a sample progarm that did not work. is
it possible to print the
anova below the summary of lm in one file?
thanks for your help
######################################################
data<-read.table("data.txt", header=T,
2010 Dec 16
3
How to save & play back an entire R session?
I know that at the end of an R session I'm given the option to save
the current *state* of the session.
But I would like to save the entire sequence of inputs that took place
during the session, so that I can play them back later, and not only
be left in the same state I was at the time of saving the session, but
be able to see the entire history of the session (inputs and outputs).
(This is
2010 Dec 09
1
prevent line breaks with sink()
Hello.
I have a script that writes vectors to a txt file using sink(). But depending on the console window's size, sometimes you will get output like:
[1] 38 84 272 287 305 348 411 413 425 426 427 457 513 517 569 583 784
[18] 866 933 996
Instead of:
[1] 38 84 272 287 305 348 411 413 425 426 427 457 513 517 569 583 784 866 933 996
Does anyone know how to stop these automatic line breaks?
2018 Apr 24
6
Copy text from Script syntax into .txt
Hi everybody,
How can I get text from RScript (e.g. syntax, reminder) into the result
text.
Sink() does not do that - I only read the results and therefore I have to
'guess' which syntax was used where - reminders I wrote are lost.
Bw and thank you in advance,
Roberto
[[alternative HTML version deleted]]
2008 Dec 05
4
Sink does not send graphs to sink file
Wiindows XP
R 2.7
I am using sink() to send the results of my analyses to a text file. Unfortunately my graphs do not become part of the file. Is there anyway that I can have both the text and graphic output of my analyses appear in a file?
Thanks,
John
John David Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
University of Maryland School of Medicine Division of Gerontology
Baltimore VA
2009 Sep 14
2
Is there an equivalent of "echo"
Sorry I'm having one of those moments where I can't find the answer but I bet its obvious...
I'm outputting my results to a file using sink()
Is there a command simillar to php's echo command that would allow me to add some text to that file ie:
dataFr$a = 1:10
dataFr$b = 2*1:10
sink ("filepath/filename.txt", split=T)
#Show number of entries in vector a
table
2008 May 19
2
Log or diary file
Hi!
Is it possible to set a file to which both
commands and output would get automatically
saved? I've tried with sink(), but only get
the output. I mean something
like a combined history and sink, as you
get with File/Save to File.. in the windows
GUI.
Tis is done with diary filename in Matlab,
and you can state diary on and
diary off to control what is being saved to
the file.
Thanks
Agus
2007 Jul 24
3
Redirecting print output
I see a rich set of graphic device functions to redirect that output. Are there commands to redirect text as well. I have a set of functions that execute many linear regression tests serially and I want to capture this in a file for printing.
Thanks,
Stan Hopkins
[[alternative HTML version deleted]]
2006 Apr 10
4
Element.getDimensions() support for IE?
Hey all,
I''m not sure if IE can support this, but I''m trying to get the dimensions of
an element that has percentages for height/width. In the example code
below, I''m trying to get the dimensions for the ''MyCell'' element. Firefox
supports Element.getDimensions(''MyCell''), but IE returns 0 for the height &
width returned by that
2009 Aug 03
3
session logging
Consider all the text that one sees on the console during an R session.
Is there a way, within R, to make all this text--both the "output" and the "messages"--automatically get copied to a single text file, in addition to seeing it on the console?
If I remember to save the console to a file at the end of my R session, that does it. But
(1) That requires pointing and
2009 Jul 08
2
print() to file?
I'd like to write some objects (eg arrays) to a log file. cat() flattens them
out. I'd like them formatted as in 'print' but print only writes to stdout.
Is there a simple way to achieve this result?
Thanks
--
View this message in context: http://www.nabble.com/print%28%29-to-file--tp24397445p24397445.html
Sent from the R help mailing list archive at Nabble.com.
2019 Jan 19
2
Status of SCP vulnerability
Hello,
I would like to request an update of the progress regarding fixes for the recently disclosed SCP vulnerability (CVE-2018-20685, CVE-2019-6111, CVE-2019-6109, CVE-2019-6110)
It has been stated that CVE-2018-20685 has been patched in november but there are currently no information available on the progress of patches regarding the other CVEs.
Will there be a patched release any time soon?
2013 Mar 02
2
How to start console output with a comment sign (as in knitr)
Dear all,
knitr writes a comment sign in front of each line of console output. This extremely useful, especially for beginners who are starting to write scripts. One could just compose their script in the console (getting immediate output) and then copy the whole chunk into their .r-file.
I have been able to configure the options such that the prompt and the continuing line labels are replaced
2008 May 30
1
Get all X iterations in optim output when controls(trace=6)
Hi,
I would like to get all X iterations in optim output in matrix form.
I know about the follow approach:
sink("reportOptim")
optim( ......., control=list( trace=6,..........) )
sink()
all_iterOptim <- readLines("reportOptim")
unlink("reportOptim")
all_iterOptim <- all_iterOptim[ grep( '^X', all_iterOptim ) ]
### TODO: the rest !!! :-)
But it is very
2012 Jun 02
1
Determining frequency and period of a wave
Hello! I'm collecting data on a refrigerator that I'm using to cure
meat. Specifically I am collection humidity and temperature readings.
The temperature readings look sinusoidal (due to the refrigerator
turning on and off).
I'd like to calculate the frequency and period of the wave so that I can
determine if modifications I make to the equipment are increasing or
decreasing