Re: [R] [External] Re: Selecting a minimum value of an attribute associated with point values neighboring a given point and assigning it as a new attribute

2022-11-08 Thread Duhl, Tiffany R.
First off, thanks SO much Eric and Micha for your help on this problem! I think Micha's spatially-oriented solution with Eric's slight modifications will work best for my application but there is one snag (see the commented section near the end of the following code)-- basically I don't know ho

Re: [R] [External] Re: Selecting a minimum value of an attribute associated with point values neighboring a given point and assigning it as a new attribute

2022-11-08 Thread Eric Berger
Hi Tiffany, You can replace Conc_min <- lapply(1:N, function(i) { ... by Conc_min <- lapply(seq_len(nrow(pts)), function(i) { .. Best, Eric On Wed, Nov 9, 2022 at 4:38 AM Duhl, Tiffany R. wrote: > > First off, thanks SO much Eric and Micha for your help on this problem! I > think Micha's sp

Re: [R] print and lapply....

2022-11-08 Thread akshay kulkarni
Dear Rui, THanks a lot! THanking you, Yours sincerely AKSHAY M KULKARNI From: Rui Barradas Sent: Tuesday, November 8, 2022 8:51 PM To: akshay kulkarni ; R help Mailing list Subject: Re: [R] print and lapply �s 14:47 de 08/11/2022, akshay k

Re: [R] print and lapply....

2022-11-08 Thread Rui Barradas
Às 14:47 de 08/11/2022, akshay kulkarni escreveu: Dear Rui, The replies from you, Bert, Tim and solved my problem. My last question: what if I put print inside the body of the function passed on to lapply, instead of separately in the function argument of apply? Is this what

Re: [R] print and lapply....

2022-11-08 Thread akshay kulkarni
Dear Tim, I think the recent replies from you, Bert and Rui cleared everything ... THanks a lot.. Thanking you, Yours sincerely, AKSHAY M KULKARNI From: Ebert,Timothy Aaron Sent: Tuesday, November 8, 2022 2:15 AM To: akshay kulkarni ; Bert Gunt

Re: [R] print and lapply....

2022-11-08 Thread akshay kulkarni
Dear Rui, The replies from you, Bert, Tim and solved my problem. My last question: what if I put print inside the body of the function passed on to lapply, instead of separately in the function argument of apply? Is this what you insinuated in your reply? THanking you, yours s

Re: [R] print and lapply....

2022-11-08 Thread akshay kulkarni
Dear Bert, Amazing! Very informative...THanks a lot. From: Bert Gunter Sent: Tuesday, November 8, 2022 2:15 AM To: akshay kulkarni Cc: Rui Barradas ; R help Mailing list Subject: Re: [R] print and lapply " The lapply() caches the result