Re: [R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions

2017-05-30 Thread Rob C
Nell, I still might not be interpreting your question correctly, but I will try. When you say that the sum of the probabilities of all distance classes must equal one, I am going to treat distance as a class, instead of as a continuous variable. distance_class_probabilities <- c(9, 11, 10, 8.9,

Re: [R] Need Help - R Programming - Using iteration value to change field names for processing for every iteraion

2017-05-30 Thread David L Carlson
Refer to columns by position rather than name and everything is simpler: for (i in 2:4 ) { test[, i] <- test[, i] + test[, i-1] } Note your approach fails on the first line since you start with i=1 and there is no Day0. Another approach that is simpler: t(apply(test, 1, cumsum)) David L.

Re: [R] (no subject)

2017-05-30 Thread David Winsemius
> On May 30, 2017, at 11:18 AM, Pedro páramo wrote: > > I have seen that the vector of dates could be: > > itemizeDates(startDate="12-30-11", endDate="1-4-12") > > How can I say "today" without having to declare the endDate? > > Finally, if you can help mi with the

Re: [R] seek non-black box alternative to randomForest

2017-05-30 Thread Ismail SEZEN
I’m interested in the subject. If you send the question to another platform, please share the link here to follow up. Also, I wish to see the manuscript and rejected parts and detailed reasons. Most of the time, scientists want to reveal/discuss underlying physical process in an event and it’s

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Ismail SEZEN
> On 30 May 2017, at 21:44, Tobias Christoph wrote: > > Okay;) > > First of all many thanks to you, Ismail, that you really try to help me. I am > really not an expert with R and try to learn. > You’re welcome. > I just checked: All columns in my data frame are

Re: [R] seek non-black box alternative to randomForest

2017-05-30 Thread Simmering, Jacob E
Barry, This is mostly a mailing list about R - you have have more luck with statistical questions on www.stat.stackexchange.com. That said - the editor is wrong. The limitations of trees that random forests “solves” is overfitting. The mechanism by which a random forest classifier is built

Re: [R] (no subject)

2017-05-30 Thread Pedro páramo
I have seen that the vector of dates could be: itemizeDates(startDate="12-30-11", endDate="1-4-12") How can I say "today" without having to declare the endDate? Finally, if you can help mi with the plot would be very helpfull 2017-05-30 19:41 GMT+02:00 Pedro páramo :

[R] (no subject)

2017-05-30 Thread Pedro páramo
Hi all, I get started with R till many time ago. I want to make a function that makes a plot with several inputs. First of all, the first input is a date 01/01/2014. I make a plot of a calculated series from 01/01/2014 till TODAY. How can I make this vector authomatically without calculating

[R] seek non-black box alternative to randomForest

2017-05-30 Thread Barry King
I've recently had a research manuscript rejected by an editor. The manuscript showed that for a real life data set, random forest outperformed multiple linear regression with respect to predicting the target variable. The editor's objection was that random forest is a black box where the random

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Tobias Christoph
Okay;) First of all many thanks to you, Ismail, that you really try to help me. I am really not an expert with R and try to learn. I just checked: All columns in my data frame are numeric. The range of years is from 2005 to 2016. Please find attached the result of "data.frame(data)". I

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Ismail SEZEN
> On 30 May 2017, at 21:23, Tobias Christoph wrote: > > Ahh, okay. > > I think now I understand what you exactly mean. But the plot is stil not > working /differentiate the dots by color. I used the following formula. > "plot(data$stations, data$revenue,

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Tobias Christoph
Ahh, okay. I think now I understand what you exactly mean. But the plot is stil not working /differentiate the dots by color. I used the following formula. "plot(data$stations, data$revenue, xlab="stations", ylab="revenue", col = findInterval(data$year, c(2005, 2010, 2015))" I think the

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Ismail SEZEN
> On 30 May 2017, at 20:48, Tobias Christoph wrote: > > Hi Ismael, > > thanks for your quick reply. > > I was now able to esmitate two intervals with the "findInterval"-Function. > > x > [1,] 2005 1 > [2,] 2006 1 > [3,] 2007 1 > [4,] 2008 1 > [5,] 2009 1 >

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Tobias Christoph
Hi Ismael, thanks for your quick reply. I was now able to esmitate two intervals with the "findInterval"-Function. x [1,] 2005 1 [2,] 2006 1 [3,] 2007 1 [4,] 2008 1 [5,] 2009 1 [6,] 2010 1 [7,] 2011 2 [8,] 2012 2 [9,] 2013 2 [10,] 2014 2 [11,] 2015 2 [12,] 2016 2 But I was

Re: [R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Ismail SEZEN
> On 30 May 2017, at 19:02, Tobias Christoph wrote: > > Hey Guys, > > I just try to differentiate certain values in my plot by colour or symbol. > > I have panel data with three dimensions (number of stations, revenue, > years). To integrate the third dimension

[R] Differentiate values in a plot by colour or symbol

2017-05-30 Thread Tobias Christoph
Hey Guys, I just try to differentiate certain values in my plot by colour or symbol. I have panel data with three dimensions (number of stations, revenue, years). To integrate the third dimension (years) in the plot, I want to differentiate the values(number of stations, revenue) by a certain

[R] (Somewhat?) Off topic: Containerization software

2017-05-30 Thread Bert Gunter
Folks: This is **off topic**, but I thought it might be informative to this community. Consequently: please **no on list public comments or discussion**. Feel free to respond to me privately, if you like; but I have neither knowledge nor opinions, so why bother? This is just FYI. My apology if it

Re: [R] R package recommendation - recursively partition data frame, calculate summaries of node data frames, plot and print summaries

2017-05-30 Thread Ismail SEZEN
Hello Ross, > On 30 May 2017, at 14:51, Ross Gayler wrote: > > I am after R package recommendations. > > I have a data frame with ~5 million rows and ~50 columns. (I could do what > I want with a sample of the rows, but ideally i would use all the rows.) Very nice question

Re: [R] Fw: Need Help - R Programming - Using iteration value to change field names for processing for every iteraion

2017-05-30 Thread Bert Gunter
Your fields are adjacent, right? If so, you do not need to refer to them by name to accomplish this. Please spend some (more) time with an R tutorial or two as Rolf suggested, especially with "indexing". -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along

Re: [R] R package recommendation - recursively partition data frame, calculate summaries of node data frames, plot and print summaries

2017-05-30 Thread Bert Gunter
1. Generally this sort of thing (statistical issues) is OT here. 2. Have you tried googling? "recursive partitioning R" . 3. Have you looked at the CRAN "Machine Laearning" Task View? https://cran.r-project.org/web/views/MachineLearning.html -- Bert Bert Gunter "The trouble with having an

Re: [R] Latin Hypercube Sampling when parameters are defined according to specific probability distributions

2017-05-30 Thread Nelly Reduan
Thanks a lot Rob for your answer. I need to add a condition for the parameter “dispersal distance”. The sum of the probabilities of all distance classes must be equal to 1: y <- c(9, 11, 10, 8.9, 8, 7, 6, 5.8, 5.1, 4, 3.9, 3.7, 3.4, 3.1, 2, 1.9, 1.6, 1.4, 1, 0.9, 0.8, 0.7, 0.4, 0.3, 0.1) x <-

Re: [R] ggplot: Pie Chart with correct labels

2017-05-30 Thread Jeff Newmiller
>1. get the order of the labels right You need to order your labels in the Land factor correctly when you create it with the factor function, which was (not) done here but rather before you used dput to generate this code. >2. Why I need to reference "breaks" and "labels" completely? Read

[R] ggplot: Pie Chart with correct labels

2017-05-30 Thread G . Maubach
Hi All, I would like to do the following pie chart using ggplot from an official data source ( http://www.deutscheweine.de/fileadmin/user_upload/Website/Service/Downloads/Statistik_2016-2017-neu.pdf , Tab 8, Page 14): -- cut -- cat("# weinimport_piechart.R\n") # -- Input

[R] Fw: Need Help - R Programming - Using iteration value to change field names for processing for every iteraion

2017-05-30 Thread Vijaya Kumar Regati
Hi All, I have tried in different ways. Finally I got the solution this way : for(i in 2:4) { test[,paste0("Day",i,".Prod.balc")] <- test[,paste0("Day",i,".Prod.balc")] + test[,paste0("Day",i-1,".Prod.balc")] } Please save it for references, if needed in future. Thanks all for your

Re: [R] Need Help - R Programming - Using iteration value to change field names for processing for every iteraion

2017-05-30 Thread Vijaya Kumar Regati
Hi Manjusha, Thank you for the response. That surely helps. But the major issue in my case is not how we can apply sum fn, but how we can change field names based on iteration number. I cant skip loop in my case, because in real situation I have to deal with say around 100 fields, the only

[R] R package recommendation - recursively partition data frame, calculate summaries of node data frames, plot and print summaries

2017-05-30 Thread Ross Gayler
I am after R package recommendations. I have a data frame with ~5 million rows and ~50 columns. (I could do what I want with a sample of the rows, but ideally i would use all the rows.) (1) I want to recursively partition the rows of the data frame in a way that I manually specify. That is, I

Re: [R] Need Help - R Programming - Using iteration value to change field names for processing for every iteraion

2017-05-30 Thread Manjusha Joshi
Hello Vijaya, On Tue, May 30, 2017 at 12:32 PM, Vijaya Kumar Regati < vijayakumar.reg...@m3bi.com> wrote: > Hi, > > I am new to R programming, I am trying to work on below requirement. But > could not achieve desired result. > Appreciate if someone can help me on this : > > test dataframe : >

Re: [R] [FORGED] Need Help - R Programming - Using iteration value to change field names for processing for every iteraion

2017-05-30 Thread Rolf Turner
On 30/05/17 19:02, Vijaya Kumar Regati wrote: Hi, I am new to R programming, I am trying to work on below requirement. But could not achieve desired result. Appreciate if someone can help me on this : test dataframe : Day1.balc Day2.balc Day3.balc Day4.balc x 1002030

[R] Need Help - R Programming - Using iteration value to change field names for processing for every iteraion

2017-05-30 Thread Vijaya Kumar Regati
Hi, I am new to R programming, I am trying to work on below requirement. But could not achieve desired result. Appreciate if someone can help me on this : test dataframe : Day1.balc Day2.balc Day3.balc Day4.balc x 100203040 y 1001010