search for: saubhagya

Displaying 5 results from an estimated 5 matches for "saubhagya".

2017 Jun 23
4
R version 3.3.2, Windows 10: Applying a function to each possible pair of rows from two different data-frames
...-data.frame(distance=sqrt(sum((D1[i,1:2]-D2[j,1:2])^2)),difference=(D1[i,3]-D2[j,3])^2) D3<-rbind(D3,temp) } } Thank you -----Original Message----- From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of r-help-owner at r-project.org Sent: Friday, June 23, 2017 10:47 AM To: Rathore, Saubhagya Singh <saubhagya at gatech.edu> Subject: R version 3.3.2, Windows 10: Applying a function to each possible pair of rows from two different data-frames The message's content type was not explicitly allowed
2017 Jun 23
0
R version 3.3.2, Windows 10: Applying a function to each possible pair of rows from two different data-frames
...<- (D.all[,3] - D.all[,6])^2 D.all Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Fri, Jun 23, 2017 at 8:19 AM, Rathore, Saubhagya Singh <saubhagya at gatech.edu> wrote: > For certain reason, the content was not visible in the last mail, so posting it again. > > Dear Members, > > I have two different dataframes with a different number of rows. I need to apply a set of functions to each possible combination...
2017 Jun 23
1
R version 3.3.2, Windows 10: Applying a function to each possible pair of rows from two different data-frames
...in 1:nrow(D2)) { > k <- k + 1 > D4[k, ] <- > c(distance=sqrt(sum((D1[i,1:2]-D2[j,1:2])^2)),difference=(D1[i,3]-D2[j,3])^2) > > } > } > > identical(D3, D4) > > Hope this helps, > > Rui Barradas > > Em 23-06-2017 16:19, Rathore, Saubhagya Singh escreveu: >> For certain reason, the content was not visible in the last mail, so >> posting it again. >> >> Dear Members, >> >> I have two different dataframes with a different number of rows. I >> need to apply a set of functions to each possible co...
2017 Jun 23
0
R version 3.3.2, Windows 10: Applying a function to each possible pair of rows from two different data-frames
...distance=integer(n),difference=integer(n)) k <- 0 for (i in 1:nrow(D1)){ for (j in 1:nrow(D2)) { k <- k + 1 D4[k, ] <- c(distance=sqrt(sum((D1[i,1:2]-D2[j,1:2])^2)),difference=(D1[i,3]-D2[j,3])^2) } } identical(D3, D4) Hope this helps, Rui Barradas Em 23-06-2017 16:19, Rathore, Saubhagya Singh escreveu: > For certain reason, the content was not visible in the last mail, so posting it again. > > Dear Members, > > I have two different dataframes with a different number of rows. I need to apply a set of functions to each possible combination of rows with one row coming...
2017 Sep 24
1
R version 3.3.2, Windows 10: gstat package: Error in fitting a variogram model using 'fit.variogram' function
...uot;,range =40000),fit.method = 7) The system throws following error message: Error in switch(model, exponential = fit.exponential(v.object, c0 = nugget, : EXPR must be a length 1 vector Any help to know the cause of the error and avoiding it would be highly appreciated. Thank you very much Saubhagya Singh Rathore PhD Candidate Civil and Environmental Engineering Georgia Institute of Technology [[alternative HTML version deleted]]