Displaying 20 results from an estimated 1300 matches similar to: "Save object R with tkgetSaveFile"
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:
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:
2008 Nov 08
1
Get Information
I am a new commer in R. I am using the library tcltk, i need few information about it.
so that, i wrote the following programme to save the file, but when i save the file, i do not find the file save, please help me, in order to continue my projet.
this is the programme:
tt <- tktoplevel()
txt <- tktext(tt)
tkwm.title(tt,"Saisi des modalités") #intitule la fenêtre
tkgrid(txt)
2006 Aug 25
0
tktoplevel & tkgetSaveFile options
Dear list,
Previously I posted these question to R-SIG-GUI. Perhaps here is a better place.
1. Is there some option for mantaining the tktoplevel window always on top?
2. Is there some option to eliminate the border icons maximize, minimize and close of a tktoplevel window?
3. Is possible to avoid the warning message (or changing its contents) in tkgetSaveFile when the file to save already
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
2010 Feb 10
6
prompts and running means
G'day, I am new user to R, and have been thrown in the deep end with a
something my company want me to write.
my code is as follows:
kenttemp=read.csv("mnowak.11.1.csv")
rows=nrow(kenttemp)-5
kent=kenttemp[1:rows,] #have to remove the last 5 lines of the
graph as they interfere with rest of data
max(kent[,16],na.rm=TRUE)->ymax
ymax=ymax+200 #This is to get
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 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
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
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
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?
2003 Sep 10
1
what is set.fit in function predict.lm
Hi, what es the parameter set.fit in function predict.lm, is set.fit True
then i need the standard error How i cant calculate it?. It is the different
what? i see the code of predict.lm How i cant see the matemathics formula
for the calculation of standard error.
2003 Sep 12
1
save object interactively
Hello, it wanted to know as I can keep to save a object of R in interactive
form, in which I can put the name of the file in a window of I talk, and
not to have to create it, a badly serious example:
x<-c(1,2,3,4)
> nbre<-"x.Rdata"
> f<-file.choose()
Error in file.choose() : file choice cancelled
> f
Error: Object "f" not found
> file.create(nbre)
[1]
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
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()
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