Displaying 20 results from an estimated 10000 matches similar to: "save object interactively"
2003 Aug 15
1
menubutton don´t work
Why the variable archOp does not take the value that be chosen in the
menubutton?, therefore always remains as a white one, I intend to charge
the direccion of open files in a vector and then to elect with the
menubutton with which to work but not functions thanks.Ruben
library(tcltk)
arch<-tclVar(init=" ")
archOp<-tclVar(init=" ")
vectPath<-c()
2003 Nov 26
5
multiple peaks in data frame
Hello, it wanted to know how I can extract of a dates frame the values
peaks according to an interval that I
establish. For example if dates are:
1 23
2 4
3 56
4 7
5 99
6 33
extract the date i wanted to divide into intervals of 2 an
d to take alone the numbers 23, 56 and 99 of those 3 intervals. Thanks
Ruben
2004 Jul 15
5
formula
Hi, i 'dont understand how to take a general formula, view this:
x<-1:5
y<-c(0,1,1.7,2,2.1.4)
dummy<-data.frame(x=x,y=y)
formula<-"y~A*log(x)/log(2)"
formu<-as.formula(formula)
fm<-lm(formu,data=dummy)
Error in eval(expr, envir, enclos) : Object "A" not found
but A is the parameter of fitting, why is this?Thanks Ruben
2003 Sep 01
2
Axis color
Hello, my question is if I have two axes in a graphics as I can put him a
different color al axis and to the number of the scale. ? Thanks. Ruben
2003 Sep 18
1
Save object R with tkgetSaveFile
HI, my question is about the function tkgetSavefile not save any file, for
example the next script run OK but
not save the file who i like to save, how i cant to save and object R with
tkgetSaveFile, how i use the
function save(objet, file="foo.R") with tkgetSaveFile ?What is the error?.
I'm work with R 1.7.1
library(tcltk)
x<-1
filetypes <- list("{Texto {.txt}} {Word
2004 Jul 13
2
help with as.function
HI, sorry but i don't understand how to make a function with as.function()
formula<-"2+3*x"
formu<-as.symbol(formula)
> formu
2+3*x
formul<-as.function(alist(x=,formu))
curve(formul,1,5,col="blue")
Error in xy.coords(x, y, xlabel, ylabel, log) :
x and y lengths differ
> typeof(formul)
[1] "closure"
and not plot the curve function, Why?
2004 Jul 15
2
formula and lm
Hi, don' t understand why the function fomula have this error, i enclose
the parameter "a" with the function I()
Thank Ruben
x<-1:5
y<-c( 2 ,4 , 6 , 8 ,11)
formu<-y~I(a*x)
form<-formula(formu)
dummy<-data.frame(x=x,y=y)
fm<-lm(form,data=dummy)
Error in unique(c("AsIs", oldClass(x))) : Object "a" not found
2003 Sep 19
1
Saving with tkgetSaveFile
HI, i'm trying to save a data frame with the next script:
x<-c(1,2,3)#suposse here the data frame
a<-tkgetSaveFile()
a<-tkgetSaveFile()
save(x,file=as.character(a))
but i obtain the next warning message:
Warning messages:
1: the condition has length > 1 and only the first element will be used in:
if (file == "") stop("`file' must be non-empty string")
2:
2005 Jan 08
1
coordinates of mouse position
HI, I need known the position of mouse, but i not know how obtain the
parameter %X used in tcl. the script in Tcl is:
set w .probe
catch {destroy $w}
toplevel $w
proc Captura_Datos { ancho alto } {
puts "El ancho es $ancho"
puts "El alto es $alto"
} bind $w <Configure> "Captura_Datos %X %Y"
In R
w<-tktoplevel()
f<-function(a,b)^`
print(a)
print(b)
2003 Aug 29
1
Six axis y with axis function?
Hi,
I am trying to plot a time serie of six colum of data sets on one plot but
with using a different y-axis ranges for each - preferably with one shown
on each side of the graph. I'm trying with axis function but not good luck
i will for each they plot with our proper scale and range for example
time A B C...etc
08:00:01 1000 15 2
08:00:02 2200 17 5
08:00:03 2500 19
2004 Jun 30
1
help with tclVar
Hi, I can' t load a variable tcltk declared with tclVar, why is this?, the
exmple above explain me ,Thanks Ruben
a<-tclVar(init="")
> f<-function(){
+ a<<-"pipo"
+ }
> f()
> a
[1] "pipo"
> tclvalue(a)
Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class =
"tclObj") :
[tcl] can't
2003 Nov 01
2
c code in R
Hi, my question is How i cant to execute c code within R for example
name of program probe.c (in workpath of R)
#include<stdio.h>
void main(){
int x;
scanf("%d\n",&x)
printf("%d\n",x)
}
and in R i make
.c("probe.c")
i'm obtain no load table simbol, but i compile the program with Borland C
5.0 and obtain the .obj archive (probe.obj and the .exe).I have
2004 May 26
1
time
Hi, i need select data from data frame, for example:
x is a data frame with values in jump to 5 seconds
12:10:00 51 //one minute
12:10:05 63
12:10:10 75
12:10:15 88
..
12:10:59 45
12:11:00 46 //another minute
12:11:05 11
..
Have a command what to select the data minute to minute, for example
in the example above i need the maximun values minute to minute
1?? minute-->88
2?? minute--> 46
2004 Apr 02
1
convert excell file to text with RODBC package
Hi, i can convert excell to list in R with package RODBC ()but i don't
understand 2 mistake
1) Don't read the last row of the table excell
2) Don' t take the hours
My excell file call prueba4.xls and have the following rows:
where prueba4.xls was make in excell (office xp) and have one spreadsheet
call "Hoja1", you see each rows of she:
D??a Hora col1 col2 col3 col4 col5
2001 Jun 12
1
cophenetic matrix
Hello,
I analyse some free-sorting data so I use hierarchical
clustering.
I want to compare my proximity matrix with the tree
representation to evalute the fitting. (stress, cophenetic correlation
(pearson's correlation)...)
"The cophenetic similarity of two objects a and b is defined as the
similarity level at wich objects a and b become members of the same
cluster during the course of
2004 Mar 29
2
how transform excell file to text file in R
Hello, it want to know if there is a library that transform a file in
excell (*. xls) to text file(*.txt, *,prn, *.csv). Thanks
2003 Sep 09
1
charge a vector with variables and to use as variable in a checkbutton?
hello, how i cant to charge in form dynamic a checkbutton, try to do it
with a vector be charged automaticamente but not
works, for example
library(tcltk)
tt<-tktoplevel()
f<-tkframe(tt)
tkpack(f)
i<-2
if (i==1) {b1<-tkcheckbutton
(f,text="b1",variable="b1",relief="raised");tkpack(b1);print(tclvalue
("b1"))}else if (i==2) {b1<-tkcheckbutton
2003 Oct 01
0
curious error with tkcheckbutton
Hello, the following code produces an error when executing it, it is a code
that produces 6 checkbutton that at
the beginning are empty, when selecting the first checkbox he says that
doesn't know the second
variable tcl, he say:
[1] "1"
Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class
= "tclObj") :
[tcl] can't
2003 Oct 09
0
curious mistake in tkradiobutton
Hello, the following code produces an error when executing it, it is a code
that produces 6 checkbutton that at
the beginning are empty, when selecting the first checkbox he says that
doesn't know the second
variable tcl, he say:
[1] "1"
Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class
= "tclObj") :
[tcl] can't
2011 Jan 11
0
modified FAST Script from package SensoMineR for the R community - Reg
###Dear R users
###I have been using SensoMineR package from CRAN for most of my work in
sensory data analysis and from my usage experience, I encountered some
areas for improvement and considered ###modifying the function in
SensoMineR package for my personal use. I felt that it could be useful to
share this to the community for enabling adoption by other users where
they might require a