Re: [R] Fwd: Help using the exclude option in the neuralnet package

2020-10-12 Thread Frauke Günther
Dear all, the exclude and constant.weights options are used as follows: exclude: A matrix with n rows and 3 columns will exclude n weights. The the first column refers to the layer, the second column to the input neuron and the third column to the output neuron of the weight. constant.weights:

Re: [R] Fwd: Help with looping a function over a list of dataframes:

2020-07-04 Thread Kathan Desai
Hello thanks everyone for your help i managed to get a working function as followed: for(i in 2:length(list_df)){ list_df[[paste0("position_tab_",i)]][['ID']] <- unlist(lapply(list_df[[paste0("position_tab_",i)]][['midpoint']], function(x) ifelse(any(abs(x - list_df[[paste0("position_tab_",i-1)

Re: [R] Fwd: Help with looping a function over a list of dataframes:

2020-07-04 Thread Bert Gunter
Perhaps the following will be helpful (you can ignore the warning message here): > set.seed(1001) > x <- sample(1:5,10, rep = TRUE) > y <- sample(1:5,12, rep = TRUE) > n <- seq_len(min(length(x), length(y))) > flag <- as.numeric(abs(x-y)[n] <= 1) Warning message: In x - y : longer object length is

Re: [R] Fwd: Help with looping a function over a list of dataframes:

2020-07-04 Thread Kathan Desai
*I hope this is more succinct.* *I have the following code: * list_df$position_tab_5$ID <- unlist(lapply(list_df$position_tab_5$midpoint, function(x) ifelse(any(abs(x - list_df$position_tab_4$midpoint) <= 1),1,0))) It compares every observation from the midpoint column from dataframe 2 to every

Re: [R] Fwd: Help with looping a function over a list of dataframes:

2020-07-04 Thread Eric Berger
Hi Kathan, How about trying to create a *minimal* reproducible example, e.g. with a list of two data frames, where each data frame has 5 rows,? My guess is that there is a good chance that when you try to create such an example, you will discover the problem yourself. In the event that you create t

[R] Fwd: Help with looping a function over a list of dataframes:

2020-07-04 Thread Kathan Desai
-- Forwarded message - From: Kathan Desai Date: Sat, 4 Jul 2020 at 14:31 Subject: Re: [R] Help with looping a function over a list of dataframes: To: Jim Lemon Hi Jim, Thankyou for your reply, I tried the function you suggested and it doesn't seem to work. There are again no er

Re: [R] Fwd: Help with finalfit and knitr

2018-08-08 Thread Martin Maechler
> Bert Gunter > on Wed, 8 Aug 2018 08:21:05 -0700 writes: > (From Jeff Newmiller) "My advice is to enter one line of > each example at a time and study what it does before > proceeding to the next line. Copying whole swathes of code > and marveling at the result is exh

[R] Fwd: Help with finalfit and knitr

2018-08-08 Thread Bert Gunter
(From Jeff Newmiller) "My advice is to enter one line of each example at a time and study what it does before proceeding to the next line. Copying whole swathes of code and marveling at the result is exhilarating but ultimately leaves you handicapped in creating your own code." Fortune nominatio

Re: [R] Fwd: Help with R-Calling forth csv.

2018-04-16 Thread Jim Lemon
Hi Mohammad, The plot you attached suggests that the underlying distribution may be a mixture. Is there anything in your data that would explain this, such as laden/unladen, uphill/downhill, different road surface? Jim On Mon, Apr 16, 2018 at 11:31 PM, Mohammad Areida wrote: > Hi, I do not know

[R] Fwd: Help with R-Calling forth csv.

2018-04-16 Thread Mohammad Areida
Hi, I do not know how to post in general again, however my csv contains around 5-250k data Points depending on vehicle/road type and pressure exerted on geotechnical structures. I have used R to develope histograms of said csv files and will attach such Picture to you in this mail and the csv used.

Re: [R] Fwd: Help: malloc/free deadlock in unsafe signal handler 'Rf_onsigusr1'

2016-08-02 Thread Ming Li
Thanks luke. cc hawq dev team. I sent this email to R-devel 2 days before forwarding it to R-help, but no one reply. Is there any workaround? When were SIGUSR1 and SIGUSR2 sent in R? Or maybe we should move all operations not too emergency out of signal handler? Thanks. On Tue, Aug 2, 2016 at

Re: [R] Fwd: Help: malloc/free deadlock in unsafe signal handler 'Rf_onsigusr1'

2016-08-01 Thread luke-tierney
The handlers for SIGUSR1 and SIGUSR2 are really intended as an emergency break, not for ordinary programming. These could be rewritten to be safer but that would make them less immediate. Followups would be more appropriate on R-devel. Best, luke On Mon, 1 Aug 2016, Ming Li wrote: Hi all, I

[R] Fwd: Help: malloc/free deadlock in unsafe signal handler 'Rf_onsigusr1'

2016-07-31 Thread Ming Li
Hi all, I am working on a bug, which running PLR on HAWQ. The process hung and can't be terminated. >From my investigation, it seems signal handler 'Rf_onsigusr1' trigger a malloc/free deadlock. The calling stack is below. Thread 1 (Thread 0x7f4c93af48e0 (LWP 431263)): #0 0x7f4c9015805e i

[R] Fwd: help for fine mappting

2016-06-15 Thread greg holly
Dear all; Unfortunately I did not get any response for my following questions. It is time sensitive job. I would be greatly appreciate if you give help soon. Regards, Greg I am sorry for this posting. I have got help from Jim, Bert, Jeff and PIKAL on similar issue before. I tried to modify

Re: [R] Fwd: help

2014-03-19 Thread PIKAL Petr
rom: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Mehrshad Koleini > Sent: Wednesday, March 19, 2014 11:10 AM > To: r-help@r-project.org > Subject: [R] Fwd: help > > Topic: importing data from a web page > > > Dear Sir/ Madam >

[R] Fwd: help

2014-03-19 Thread Mehrshad Koleini
Topic: importing data from a web page Dear Sir/ Madam Hi. First I apologize for this question. But this also shows I'm inexperienced in using R. I need to import some tables from a web page (https) into R and analyze them through the "readHTMLTable" function. After loading XML package, the f

[R] Fwd: Help with nonlinear regression

2013-01-14 Thread Ahmed Attia
-- Forwarded message -- From: Ahmed Attia Date: Mon, Jan 14, 2013 at 2:31 AM Subject: Help with nonlinear regression To: r-help@r-project.org Dears- I have a question about nonlinear regression. Asymptotic Regression Model below is the equation of the model (Reference th

[R] Fwd: Help with nonlinear regression

2013-01-14 Thread Ahmed Attia
-- Forwarded message -- From: Date: Mon, Jan 14, 2013 at 12:31 AM Subject: Help with nonlinear regression To: ahmedati...@gmail.com The message's content type was not explicitly allowed -- Forwarded message -- From: Ahmed Attia To: r-help@r-project.org Cc: Dat

Re: [R] Fwd: help needed

2012-05-25 Thread Jim Lemon
On 05/25/2012 02:45 AM, QAMAR MUHAMMAD UZAIR wrote: ... > I want to reshape it in the following FORMAT > > 19671968196919701971197219731974 > 10.870.870.870.870.71 > 20.870.870.870.870.72 > > OBVIOUSL

[R] Fwd: help needed

2012-05-24 Thread QAMAR MUHAMMAD UZAIR
--- segue il messaggio inoltrato (the forwarded message follows) --- --- Begin Message --- Dear R users, i am very new to R. i am working on the following data. 01.01.1967 0.87 02.01.1967 0.87 03.01.1968 0.87 04.01.1968 0.87 05.01.1969 0.87 06.01.1969 0.87

[R] Fwd: help to slip a file name using "strsplit" function

2012-01-25 Thread Ivan Calandra
Hi Gianni, Your first example works fine, though you have unnecessary stuff in it: strsplit("Myfile_MyArea1_sample1.txt", "_") [[1]] [1] "Myfile" "MyArea1" "sample1.txt" The second example doesn't work because of two things: the period is a special character, and the fixed argument sho

Re: [R] Fwd: help with "by" command

2011-08-30 Thread amalka
Thanks very much for the help. I ended up getting it to work with one small change: by(foo, foo$V2, function(foo) mean(foo$trust, na.rm=T)) thanks again, Ari -- View this message in context: http://r.789695.n4.nabble.com/help-with-by-command-tp3766285p3779622.html Sent from the R help mailing

[R] Fwd: help with "by" command

2011-08-24 Thread Ken Hutchison
-- Forwarded message -- From: Ken Hutchison Date: Wed, Aug 24, 2011 at 6:06 PM Subject: Re: [R] help with "by" command To: amalka ?tapply or more specifically ?ave Hope this helps, Ken On Wed, Aug 24, 2011 at 2:51 PM, amalka wrote: > Hello, > > I am a new user of R, an

Re: [R] Fwd: Help please

2011-07-21 Thread peter dalgaard
On Jul 20, 2011, at 13:33 , Rolf Turner wrote: > On 20/07/11 21:08, Simon Knapp wrote: >> Hi All, >> >> This is not really an R question but a statistical one. If someone could >> either give me the brief explanation or point me to a reference that might >> help, I'd appreciate it. >> >> I want

Re: [R] Fwd: Help please

2011-07-20 Thread Rolf Turner
On 20/07/11 21:08, Simon Knapp wrote: Hi All, This is not really an R question but a statistical one. If someone could either give me the brief explanation or point me to a reference that might help, I'd appreciate it. I want to estimate the mean of a log-normal distribution, given the (log sca

[R] Fwd: Help please

2011-07-20 Thread Simon Knapp
Hi All, This is not really an R question but a statistical one. If someone could either give me the brief explanation or point me to a reference that might help, I'd appreciate it. I want to estimate the mean of a log-normal distribution, given the (log scale normal) parameters mu and sigma squar

Re: [R] Fwd: help

2011-06-29 Thread Dennis Murphy
Hi: It's not at all clear to me what you want to do. Is each component of your list a data frame with the same structure? Are you trying to combine them into one data frame? If so, then try mydata <- do.call(rbind, c) where c is the name of the list. (Not a good choice of name, by the way - c()

[R] Fwd: help

2011-06-29 Thread Breno Fragomeni
Hi I have imported some files to a list, called "importa". There are 43 files (importa[1], importa[2], ..., importa[43]). Now, I'm trying to create a new table in "r". Each table will got the data from the importa partition. Like file1<-importa[1]. I tried two ways: c<-list() for (i in 1:43) { c[i]

[R] Fwd: Help!!! from R beginner

2011-02-04 Thread Tae-Jin Lee
Sorry. I made a typo. It is the 5th column (not 4th). Thank you. Tae-Jin Begin forwarded message: > From: Tae-Jin Lee > Date: February 4, 2011 7:09:38 PM EST > To: r-help@R-project.org > Subject: Help!!! from R beginner > > Hello, > > I'm trying to add a column to the following data frame. The