Displaying 20 results from an estimated 200 matches similar to: "No subject"
2000 Sep 28
1
tcltk package functionality
Hello,
I wrote a function in R which uses tcltk package .... essentially I wanted
to give within that function, a widget with 2 radiobuttons to choose
between plotting Precip and Temperature plots. After the user has chosen
one of the radiobuttons there is another widget that asking him to identify
outliers. However, I am having a lot of problems...what R does is evaluate
the whole function
2000 Sep 29
0
Is it R or I?
Salutations:
I have been trying to translate a S-PLUS/ArcInfo (GIS software) application
that I wrote on a SGI (IRIX) platform to public domain R and GrassGIS on
a Linux platform. I am almost on the verge of abandoning it as I find R to
be
rather unstable, slow and frustrating.
I enclose a section of my code for R experts to examine
hoping that they'll point out that all the above three are
2000 Sep 29
1
Two tcltk questions and Re: tcltk package functionality
Sorry, for my mail from last night contains no subject.
Therefore, I send it again and two tcltk questions are appended.
----------------------------------------------------------------------------
Prasad wrote:
> I wrote a function in R which uses tcltk package .... essentially I wanted
> to give within that function, a widget with 2 radiobuttons to choose
> between plotting Precip
2004 Jul 18
2
a problem: factors, names, tables ..
Hi all,
I am *completely* lost in trying to solve a relatively simple task.
I want to compute the relative number of occurences of an event, the data
of which sits in a large table (read from file).
I have the occurences of the events in a table 'tt'
0 2 10 11 13 14 15
15 6 1 3 8 15 10
.. meaning that event of type '0' occurs 15 times, type '2' occurs 6 times
2002 Apr 02
1
cbind.ts bug?
The following creates a time series tt1 whose values rise from 1
to 20 and another time series tt2 each of whose values are 10 larger
than the corresponding value in tt1. When we attempt to bind them
together as columns, the entry after Dec 1960 is erroneously listed
as NA 1960 instead of Jan 1961. If n is changed to either 19 or is
changed to 21 in the example below, the example suddenly
2000 Sep 22
3
eval functions... (PR#668)
Full_Name: Anantha Prasad
Version: 1.1.1
OS: Linux
Submission from: (NULL) (199.131.134.30)
I am trying to convert some S-PLUS code to R (a tcl/tk application that uses
R)...
here is the error I got in R (but not in S-PLUS)...so I am wondering if it is a
bug.
Eg., the foll. extract from a function runs fine in S-PLUS but gives the error:
Error in x[[j]] : subscript out of bounds
in R
code
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 Dec 05
2
xtable html links
Hi,
I was trying to get hyperlinks using xtable, but couldn't get the hyperlinks to function properly. For example, if I use
## Try to link NY times website to every figure in column 4
mat <- matrix(1:43,6,5)
mat[,5] <- "http://nytimes.com"
for(i in 1:nrow(mat)){
strr <- paste('<a href="', mat[i,5],'">', mat[i,4], '</a>',
2004 Nov 21
3
Help with ooplot(gplots) and error bars
Dear All
I am trying to graph a proportion and CI95% by a factor with ooplot (any
other better solution ?)
It works well until I try to add the confidence interval.
this is the error message and and a description of the data:
> dat1
PointEst
TT1 1 3.6
TT2 2 5.0
TT3 3 5.8
TT4 4 11.5
TT5 5 7.5
TT5 6 8.7
TT7 7 17.4
> dat2
2006 Nov 23
1
Problem with as.ts(zoo-object)
Dear all,
I have an error message, when I try to convert a zoo object (called
test) to ts (on R 2.4.0, Package zoo version 1.2-1, Windows XP)
> test
1994-05-10 1994-06-09 1994-07-09
0.0024943889 0.0024881824 0.0006955831
> str(test)
atomic [1:3] 0.002494 0.002488 0.000696
- attr(*, "index")=Class 'Date' num [1:3] 8895 8925 8955
> is.regular(test)
[1] TRUE
2009 Oct 19
1
Problem with geometry manager in TclTK
Hello, everyone.
I have the following problem with TclTk: I create some windows and want to
change their position with geometry manage (sometimes they will be centered,
sometimes not).
If the toplevel is created and its dimensions are gathered via 'tkwinfo', I
get (usually) correct values. However, if this window is created by a
function (in the following example, by 'ask.format')
2011 Apr 15
3
Rsquared for anova
I calculate an anova test in the following way:
expdata<-read.table("/home/dorien/UA/meta-music/optimuse/optimuse1-build-desktop/results/results_processedCP",
header=TRUE)
2006 Mar 07
2
Building tkentry dynamicly
Dear R-users,
I would like to build N "tkentry" compounds in the same window, with
default text for each. As N is variable I need to construct them in an
iterative way :
library(tcltk)
main<-tktoplevel()
tktitle(main)<-"My Tool"
filenames<-c("toto","tata","titi")
N<-length(filenames)
for (i in 1: N) {
2008 Mar 31
2
tkconfigure throws an error
Thanks everybody for looking at this. I am trying to assign a script to
a button
please help:
############
library(tcltk)
tt<- tktoplevel()
tktitle(tt)<-"the title"
heading<-tklabel(tt,text="Enter date as YYYY-MM-DD")
l1<-tklabel(tt,text="Reporting date")
b1=tkbutton(tt,text="Run")
d.val<-tkentry(tt,width=12)
tkgrid(heading,columnspan=2)
2009 Feb 10
1
aggregate taking way too long to count.
Folks,
I'm checking the structure of a dataframe for duplicate parameters at a
site station (i.e depth should be measured once, not twice), using
aggregate to count each parameter within a site station. The fake data
below has only 26000 rows, and takes roughly 14 seconds. My real data has
750000 rows and I had to stop execution after about an hour. The by()
function is faster, but I
2001 Sep 19
2
tcltk: Difficulties creating menus
I am struggling with adding menus to a tcltk application. The following
example (from the O'Reilly book on Perl/Tk) works fine:
#!/usr/bin/perl -w
use Tk;
my $mw = MainWindow->new;
$menub = $mw->Menubutton(-text => "Color")->pack();
foreach (qw/red yellow green blue grey/) {
$menub->radiobutton(-label => $_, -command => \&set_bg,
2006 Mar 02
0
tcltk error when calling a dialog
Hello;
I've got several radiobuttons in tcltk with the following sintaxis:
tk2.rd <- /tkradiobutton(/frame4,command=plotDialog1,text="New Q plot", value=2, variable=OUTPLOTtclVar/)/
All the buttons call the same function "plotDialog1". With the objective
of call a dialog to select some plotting options.
When I select one of the radiobuttons and the windows with the
2008 Jul 18
0
Retrieving data from a tcl /tk function
Hello,
I am sorry if this is an answered question, but I did my homework for a long while and couldn't figure out a way to retrieve data entry from a model dialog. In one of the examples compiled by James Wettenhall:
odalDialog <- function(title, question, entryInit, entryWidth = 20,
returnValOnCancel = "ID_CANCEL") {
dlg <- tktoplevel()
tkwm.deiconify(dlg)
2009 Aug 12
0
tcltk in BATCH mode
DeaR list,
I am writing a user friendly script for an interactive use of R. The user is
supposed to click on a bat-File in Windows-environment and to enter some
values in a pop-up window.
Let us assume we have the script given below. If she sources this script
within R, everything works smoothly. The pop-up window jumps and patiently
waits her to enter the value. For this to work she has to start
2002 Feb 11
0
read.table in TCL/TK interface
hello,
i would like program userfriendly tcl/tk widgets like
the t-test example in a more complex way !
(1) Is it not possible to combine tk_getOpenFile with
the R function read.table to select in userfriendly way data sets ?
(I'm newbie and take code-parts from t-test example and scripting example.)
(2) Is it possible to use a variableSelection widget
to select a special variable which i