similar to: strsplit convert data

Displaying 20 results from an estimated 1000 matches similar to: "strsplit convert data"

2008 Oct 22
0
Bug when importing datas with tcltk window (PR#13191)
Full_Name: PREUSS Bastien Version: R version 2.6.2 (2008-02-08) OS: mingw32 Submission from: (NULL) (193.51.249.166) Hello, I wrote a small function using tcltk to import my datasets. When I use it, both the tcltk and the R windows closed themselves. I don't understand why. What is surprising is that it doesn?t happen each time. Most of the time I can't finish the importation of my 3
2007 Jul 05
4
Me again, about the horrible documentation of tcltk
How on Earth can I know what are the arguments of any of the functions of the tcl/tk package? I tried hard to find, using all search engines available, looking deep into keywords of R, python's tkinter and tcl/tk, but nowhere I found anything remotely similar to a help. For example, what are the possible arguments to tkgetOpenFile? I know that this works: library(tcltk) filename <-
2003 Jan 20
1
curious code mistakes
hi, know anybody why this happen ? I''m using winedt , the old code saved in an .R call syntax error''s. Curious is, when i''m type below the same code , it works ??? ...imho a print type problem, what i''m never before observed and can''t recognize with my eyes ? P.S. R.1.6.1 /w2k thanks for advance & regards,christian >>getfile <-
2007 Feb 16
0
R GUI programming
Hi, All: I am having a problem with handling global variable value in GUI programming, I hope R gurus can give me some advice on it. What I want to do is to read in a dataset, display some information based on the input and do some calculation on the dataset: However, I am having trouble organizing my code, as the following code goes, the comboBox section will have to be put in the
2008 Mar 19
1
Radio Buttons or similars
Hello companions!!! I have a function that creates a Radio Buttons, and I need that this function return the selected value in the Radio Buttons. I would like that, if somebody know as I could return the value, you say me as do it. Next, I show the function function1<-function(){ require(tcltk) tt <- tktoplevel() rb1 <- tkradiobutton(tt) rb2 <- tkradiobutton(tt) rbValue <-
2008 Sep 17
1
trouble with tkgetOpenFile
I'm trying to use the following loop to open a window multiple times to select files, but only the last window shows up. What am I missing? library(tcltk) nWin <- 6 fn <- vector('list', nWin) for (ii in nWin) { fn[[ii]] <- tclvalue( tkgetOpenFile( filetypes = "{{Files} {.1D}} {{All files} *}", title = paste('Choose number', ii, 'time
2008 Aug 19
1
Open directory within a menu in tcltk
Hello, I am trying to setup a menu to open files and directories. I have the following code: opendir<-function() { dirname<<-tclvalue(tkchooseDirectory()) } openfile<-function() { filename<<-tclvalue(tkgetOpenFile()) } require(tcltk) t1<-tktoplevel() topMenu<-tkmenu(t1) tkconfigure(t1,menu=topMenu) plotMenu<-tkmenu(topMenu, tearoff=FALSE)
2007 Dec 29
3
tcltk again
Hello, the admonition of Prof. Ripley to search the documentation to solve my problem helped, today I read a lot more on Tcl/Tk than before ;-) But now I'm stuck again. With the help of my script some functions are plotted on the display, then I ask if the user wants to save it as pdf. In windows I use winDialog and it works. But I can't succeed in Linux. In short:
2007 Dec 28
4
Return Value of TCl/Tk window in R
Hello, I have the TCl/Tk command "tkmessageBox(titel="",message="x",icon="question",type="okcancel")" in my R script. Now I want to perform some operation in relation to the user's choice, something like "if (okpressed) xxx else yyy" What values does this command give and how are they used? Thank you, Richard -- Richard M?ller -
2007 May 13
1
Dropdown boxes in tcltk and R
Hello, I'm very much a newbie in R and more so in tcltk so apologies if this question is stupid. Basically I am trying to use the combobox example found here: http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/DropDown.html . What I want to do is in that example get fruitChoice as a variable in R in general. When I run that code, however, and the ask for fruitChoice it says
2012 Mar 07
4
problem with data
Good Afternoon, ?? I have a small problem with the following code. # The x.sub$Time[[1]] 2006-10-31 19:03:01 EST # when put in variable star give-me star<-x.sub$Time[[1]] print(star) print(x.sub$Time[[1]]) [1] 1 36 32 -........ do not understand why -- View this message in context: http://r.789695.n4.nabble.com/problem-with-data-tp4453510p4453510.html Sent from the R help mailing
2006 Aug 11
2
tkinsert
Dear List, I'm looking for some informations about the function "tkinsert()". I d'like to write lot of command in my text window and after to evaluate it with a button "Submit" for example, but i have some problems: here a exemple of my code: 1) My first problem tt=tktoplevel() txt=tktext(tt,height=40) tkpack(txt) var1=paste("x=2")
2002 Sep 26
3
tcltk - command=function()
hi, just having the idea create a simple tcl/tk gui-dialog for different data-file formats i get starting problems and it would be nice get some tips/tricks from experienced tcl/tk user in R ! tt <- tktoplevel() label.widget <- tklabel(tt,text="Decision Tree GUI") button.widget <- tkbutton(tt,text="Select SPSSFile", command=function()
2003 Nov 03
0
problem with fix() called from Rcmdr
Dear list members, I and my students have encountered an intermittent problem using the Rcmdr package (version 0.9-0) under Windows (with the SDI). The problem occurs both in versions 1.7.1 and 1.8.0 of R. The problem seems to occur only in the following context: The "Edit data set" button is pressed in the Rcmdr GUI. This executes the fix() function on the active data frame,
2011 Nov 28
5
window manager interface commands for linux
How can i replicate this in Linux: source(file.choose()) I've tried source(tkgetOpenFile()) but with no luck
2012 Mar 08
8
Copy dataframe for another
I'm trying to copy the results of a dataframe to another within a cycle for but I am not able to implement the rbind, because give th d<-Null df<-NULL for(r in 2: nrow(x)) { val_user<-x.name[[r]] pos<-x.pos[[r]] -4 age <-x.age[[r]] d<-data.frame(val_user,pos,) print(d) } df<-rbind(df,d) } someone can help me solve this Thanks
2005 Sep 25
0
Tip: Working directory in titlebar
I hope others may find this useful. I use R in many different directories. By adding the following line to the .Rprofile file: utils:::setWindowTitle(paste("-",getwd())) the titlebar of each R instance shows the directory from which it was started. I have tested this with rterm.exe and rgui.exe under Windows and with RECENT versions of R only. ----- For changing directories
2008 Jan 15
3
How to interrupt a loop by pressing a key?
Hello, Does anyone know a way of interrupting a loop by pressing a key (besides ctrl-c)? My problem is the following: I have a machine acquiring data and saving text files into a directory. I have an R script that read those files, process them and plots the results. What I would like to do is: process the data as the files appear in the folder (I've done that do with a loop that checks
2005 Jul 20
0
Internationalization of the Rcmdr package
Dear r-devel list members, I've prepared a version of the Rcmdr package that uses the new tools for internationalization and localization in R 2.1.x. For the present, this is the development version of the Rcmdr package (1.1-0), available at <http://socserv.socsci.mcmaster.ca/jfox/Misc/Rcmdr/index.html>. There is currently a French translation provided with the package, courtesy of
2012 Mar 13
2
Matrix Another table
I have next table source destine 3 3 7 7 6 6 3 4 4 4 4 3 3 3 3 3 3 3 3 3 3 4 4 4 4 3 3 4 4 3 I'm trying to create an array with the number of occurrences between the source and destination. id_ap<-levels(factor(df$v_source)) num_AP<-length(levels(factor(df$v_source))) mat<-matrix(data=NA,nrow=num_AP,ncol=num_AP, byrow=TRUE,dimnames=list(id_ap,id_ap)) 1 2 3 4 5 6 7