Re: [R] Creating a package with specail caracters

2015-10-15 Thread jpara3
I have tried: tktitle(tt) <- iconv("¡GUI estadística", from="latin1",to="UTF8") tktitle(tt) <- iconv("¡GUI estadística", from="",to="UTF8") tktitle(tt) <- iconv("¡GUI estadística", to="UTF8") But there are no good results. Can maybe exist a code to insert after the special characters, as \´i

Re: [R] Creating a package with specail caracters

2015-10-15 Thread jpara3
Hi Peter, Thanks for your help, but the problem is still happening. I have done this: funcion<-function(){ tt<-tktoplevel(bg="white") x<-iconv("¡GUI estadística",to="latin1") Encoding(x) <- "UTF8" tktitle(tt)<-x } - Guided Tours Basque Country Guided tours in the three

[R] Creating a package with specail caracters

2015-10-15 Thread jpara3
Hi, I want to create my own package with a very simple GUI. The problem is that I need to use special latin characters, as ¿,¡,ñ... The function i have made is: funcion<-function(){ tt<-tktoplevel() tktitle(tt)<-"¡GUI de estadística" } The problem is that when i run this function, instead

[R] Model after random forest

2015-09-13 Thread jpara3
Hi there, I´m using random Forest package to create a random Forest: model<-randomForest(A~.,data=mydata) , and I use the varImpPlot(model) to see which are the most important variables, so I obtain that C, D and F are the most important ones, but... How can I see the model, in which levels I

[R] Confussion matrix in tree clasiffication

2015-08-19 Thread jpara3
Hi there! I want to create a confussion matrix after using the tree package to create a clasiffication tree, but I´m not sure of how to create this matrix. Can anyone please help me? Thanks Jesús - Guided Tours Basque Country Guided tours in the three capitals of the Basque Country:

Re: [R] Imbalanced random forest

2015-07-30 Thread jpara3
Thanks for the info! - Guided Tours Basque Country Guided tours in the three capitals of the Basque Country: Bilbao, Vitoria-Gasteiz and San Sebastian, as well as in their provinces. Available languages. Travel planners for groups and design of tourist routes across the Basque

Re: [R] Stop tkbind

2015-07-29 Thread jpara3
Not any ideas? Thanks! -- View this message in context: http://r.789695.n4.nabble.com/Stop-tkbind-tp4710476p4710514.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] How to read CSV from web?

2015-07-29 Thread jpara3
data-read.csv(https://raw.githubusercontent.com/sjkiss/Survey/master/mlogit.out.csv,header=T,sep=,;) -- View this message in context: http://r.789695.n4.nabble.com/How-to-read-CSV-from-web-tp4710502p4710513.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Stop tkbind

2015-07-29 Thread jpara3
The solution is to create a new tkbind function that has not argument tkbind(img,button-1,) -- View this message in context: http://r.789695.n4.nabble.com/Stop-tkbind-tp4710476p4710517.html Sent from the R help mailing list archive at Nabble.com.

[R] Imbalanced random forest

2015-07-29 Thread jpara3
¿How can i set up a study with random forest where the response is highly imbalanced? - Guided Tours Basque Country Guided tours in the three capitals of the Basque Country: Bilbao, Vitoria-Gasteiz and San Sebastian, as well as in their provinces. Available languages. Travel planners

Re: [R] Global variables

2015-07-28 Thread jpara3
Thanks to all!!! -- View this message in context: http://r.789695.n4.nabble.com/Global-variables-tp4710473p4710483.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

[R] Global variables

2015-07-28 Thread jpara3
Hi, I want to pass a variable value from one function to another, but not as a function argument. For this propose I have put -, but it doesn´t work. My code: one-function(){ a-variable passed } two-function(){ print(a) } dos() If I execute dos(), then the error message is: Error in print(a)

[R] Stop tkbind

2015-07-28 Thread jpara3
Hi, I´m trying this example from the website(http://www.sciviews.org/_rgui/tcltk/InteractiveTkrPlot.html), but the problem is that i wnat to integrate to it an stop button that stops the tkbind. Can someone please help me? THanks!! The code-

Re: [R] Type of variable

2015-07-27 Thread jpara3
Ok, stupid question. is.factor is the solution. Thanks! -- View this message in context: http://r.789695.n4.nabble.com/Type-of-variable-tp4710395p4710396.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

[R] Type of variable

2015-07-27 Thread jpara3
I have a dataframe like this one: one twothree 3.2 2.5 a 3.5 2.3 a 3.7 2.2 b How can I implment and If that detects the type of data that the variables one, two and three has? Thanks!!! -- View this message in context:

Re: [R] R GUI plot by color

2015-07-27 Thread jpara3
Ok, I will take it into account in the future. Thanks!! -- View this message in context: http://r.789695.n4.nabble.com/R-GUI-plot-by-color-tp4710297p4710382.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

[R] R GUI plot by color

2015-07-24 Thread jpara3
Hi, I want to do a plot from a variable (which i select from a listbox) with the color factor of the variable that i have selected from another listbox. To be not very heavy pasting all the code, i will only paste real important parts: data1 and data2 are the extacted parts of the dataframes

Re: [R] R GUI plot by color

2015-07-24 Thread jpara3
I have done a trial with a dataframe like this: one-c(3,2,2) two-c(a,b,b) data-dataframe(uno,dos) plot(data$one,col=data$two) and it plots perfect. If I try it with the code that i have post in the first message, selecting data1 and data2 as i nthis example, the plot is plotted, but all dots

Re: [R] R GUI plot by color

2015-07-24 Thread jpara3
Yes, you were right!! Thanks. -- View this message in context: http://r.789695.n4.nabble.com/R-GUI-plot-by-color-tp4710297p4710320.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list -- To

Re: [R] R GUI tklistbox get value

2015-07-21 Thread jpara3
Thanks mr FOX, now it works perfect!!! -- View this message in context: http://r.789695.n4.nabble.com/R-GUI-tklistbox-get-value-tp4710064p4710123.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list --

[R] R GUI tklistbox get value

2015-07-20 Thread jpara3
Hi, i have a dataframe, dat, with 2 variables, one and two. I want to print in R the mean of the selected variable of the dataframe. You can select it with a tklistbox, but when you click OK button, the mean is not displayed, just NA one-c(5,5,6,9,5,8) two-c(12,13,14,12,14,12)