[R] access the tcl history stream in tcltk

2013-08-02 Thread Christopher Marcum
Hello, Does anyone have a clue about how dump tcl's history stream out to a file from R pointers to tcl? This should be accessible via "tcl("history",...) but the stream seems to be always empty. library(tcltk) #Load tcltk tcl("history","nextid") #should be 1, and it is a1<-tclVar("1") tclvalue(a

[R] dynamic argument names and values as variables inside a loop

2011-04-08 Thread Christopher Marcum
thank you for your time. Here is a link to a similar problem that another useR recently posted: https://stat.ethz.ch/pipermail/r-help/2011-January/264719.html Best, Christopher Marcum Doctoral Candidate Sociology Department University of California, Irvine [[alternative HTML version de

[R] breaking out of a loop from within a function

2008-11-23 Thread Christopher Marcum
.stop,column=3,row=4,sticky="e") tkfocus(tt) tkwait.window(tt) a } #Some arbitrary text to code event<-"blup" anchor<-"1234" text1<-"Batman struck the Riddler with his gauntlet. KAPOW!" text2<-"Batman struck the Riddler with his

Re: [R] iterative loop with user input?

2008-04-04 Thread Christopher Marcum
arameter 3: asdf > Parameter 4: 33 > Parameter 5: scs > Parameter 6: sdaf2 > Parameter 7: 234 > Parameter 8: gfd > Parameter 9: 123 > Parameter 10: aa > $`12` > [1] "12" > > $`2` > [1] "2" > > $asdf > [1] "asdf" > > &

[R] iterative loop with user input?

2008-04-03 Thread Christopher Marcum
Hello R-Users, I would like to use an iterative loop to collect user input from within a function. I'm sure that this would be some combination of "for","break", and "next" but have not been able to get the syntax down. I would like to print some text to the screen at each step in the loop, ask t

[R] factor manipulation: edgelist to a matrix?

2007-12-19 Thread Christopher Marcum
Hello All, I have had considerable bad luck with attempting the following with for loops. Here is the problem: # Suppose we have a data.frame with the following data, which can be considered a type of edgelist (for those with networks backgrounds): # # V1 V2 # 1 A #