similar to: sink behavior

Displaying 20 results from an estimated 20000 matches similar to: "sink behavior"

2010 Jul 16
3
Help with Sink Function
iterations <- 100 nvars <- 4 combined <- rbind(scaleMiceTrain, scaleMiceTest) reducedSample <- combined reducedSample <- subset(reducedSample, select = -pID50) reducedSample <- subset(reducedSample, select = -id) for (i in 1:iterations) { miceSample <- sample(combined[,-c(1,2)],nvars, replace=FALSE) miceSample$pID50 <- combined$pID50 miceTestSample <-
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
2005 Apr 18
1
how to use sink.number()
Dear All R-helper, my question is how to use sink.number. if I want to label the output was sinked by sink function how should I do ? example: zz <- file("c:\\sinktest1.txt",open="wt") sink(zz) g<- 1:10 cat(g,"\n") f<-list(1:100) h<-capture.output(f) cat(h) sink() I want there are marks in "sinktest1.txt" files, let me know the number of
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
2003 May 07
3
Sink for a subdirectory
Hi, how do I sink output to a subdirectory under which R is running? For example, suppose R is running in ~me and I would like to sink output to ~me/Subdir/filename. The obvious sink( "Subdir/filename" ) does not seem to work. Thanks very much.
2012 Nov 09
2
sink() doesn't work
Oftentimes I want to make outputs to be displayed on the R console. However, after I execute a program with a sink command in it the R console becomes unresponsive. Meaning that the following occurs in R console: > source("Program_containing_sink.R") > a<-1 > a > >sink() >a > R help says that sink() will bring output back to the console but i's not
2008 May 01
2
using the sink() function in a for-look
hi all, i wanted to use the sink function to sequentially output regression summaries within a for-loop. i must have something wrong somewhere (or be using the sink function incorrectly), but can anyone help? the code I am using is: where data.x is a data.frame of independents, and data.y is a data.frame of dependents. > for (i in 1:length(data.y)){ > taxa.i <- names(data.y[i])
2003 Jan 13
3
sink() & windows printing
I used sink() a lot under linux with no problems. Under windows 2000 & using R 1.5.1, I do the following: - use sink() to direct ouput to a file - use sink() again to direct output to screen - print the file (to a network printer) PROBLEM: the file stays spooled infinitely at the printer. Sometimes the spooling gets translated into a printer error. The only way to get any printing working
2009 Mar 28
2
Output an RWeka model via sink
When I sink the output of an RWeka model to a text file, the output file appears empty: library(RWeka) model = LogitBoost(Species~.,data=iris) print(model) sink("output.txt") print(model) #file output.txt is created, but it is blank sink() Am I doing anything wrong? [[alternative HTML version deleted]]
2010 May 21
2
Getting sink to work with “message” on R 2.11.0 - what did I miss?
Hi all, I am trying to use type message with sink, like this: sink("all.Rout", type="message") 1+3 sink() readLines(con = "all.Rout") So to get the following output: > 1+3 [1] 4 Obviously this doesn't work. I tried some variations (based on the explanations in the help) but am missing something on how to make it work. Any suggestions? (p.s: I need
2004 Feb 06
4
more or less pager
R-users, (forgive my return adres) I've been breaking my head why R---which i find fabulous, by the way---does not pipe interactive output through a pager (more or less), like it does with help(), or like GNU Octave does with arrays with more than terminal height rows. Maybe it is my installation (Debian/GNU Linux). Maybe it is my configuration, but i don't think so because with
2007 Mar 08
1
sink with R-code
I have the same question that Eusebio had: Is there a function similar to "sink" that redirect also R code to a file that is: sink("R001") x <- c(2,-6,-4,8,5,4,1,3,4,-9,0,1) A <- matrix(x, ncol=3) A A.prima <- t(A) A.prima dim(A) dim(A.prima) sink() create a file "R001" with contents: ------------------------------------------ [,1] [,2] [,3] [1,]
2004 Mar 25
1
Error : sink stack is full
Hello, I have implemented a method which uses sink to follow the progression status of an iterative process (Below is part of the code) I have already used such kind of code with no problem. Today, I get a "sink stack is full" error. I wonder if it could be linked with the fact that my .RData has a large size (around 7 Mo) ??? I hope that someone can help me ... Thanks in advance
2005 Jun 01
1
A problem on sink() and format,suggestions appreciated
Dear R users I get a weired problem when use sink: since the data set pretty big, I sink intermediate result for further use,following lines are consistently used when write data ########################### sink("dataname.txt") data sink() ########################## at first couples of run, all 10 variables are wrote to a file in following format: V1 V2 ....... V10 1
2010 Jul 23
1
sink function
I have the following code to write the output from auto.arima function. The issue is not in finding the model but to divert its out put fit to a file order_fit.txt. code runs but nothing is written to order_fit.txt where am I going wrong library(forecast) for (i in 1:2) { filen = paste("file",i,".txt",sep="") data <- read.table(filen) dat1 <- data[,1] xt <-
2004 Jul 24
3
help(package)->sink()
I wanted to direct packageInfo to a file, so I could add comments, e.g., in MS Word. The following command stored the desired information in an object: mclustInfo <- help(package="mclust") Then "mclustInfo" displays it on my screen. To direct it to a file, I tried the following: sink("mclust.txt") mclustInfo sink()
2000 Dec 19
2
Problem with sink() in 1.20 on Windows (PR#779)
When I use sink(filename) to save the results of the run, the file does not seem to be closed or released back to the OS after I issue the "sink()" command. Here is a baby example: sink("test.txt") tdta <- data.frame(x = x <- 0:10,y = 2 * x + rnorm(11)) print(summary(lm(y ~ x, data=tdta))) sink() At this point (even after refreshing the Explorer window) the filesize
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
2001 Jan 02
1
sink() does not seem to release the file
I run Win2000, and when I try to write to a file and later use it it seems that R 1.02.0 has a firm grip on it: > version _ platform i386-pc-mingw32 arch x86 os Win32 system x86, Win32 status major 1 minor 2.0 year 2000 month 12 day 15