R/EUsPoint.R

Defines functions EUsPoint

Documented in EUsPoint

EUsPoint <-
function(Rbook,EU){
  Qin<-Rbook$coordinates.EU
  nx = Rbook$parameters$nx
  ny = Rbook$parameters$ny
  a<-c(1,2,2*(nx+1),2*nx+1)
  b<-NULL
for(j in 1:ny){ 
  for(i in seq(0,2*(nx-1),2)){
  b <-rbind(b,a+i)
  }
  a<-a+4*nx 
}
  q<-b[EU,]
  Q<-Qin[q,]
  return(Q)
}

Try the rPAex package in your browser

Any scripts or data that you put into this service are public.

rPAex documentation built on Nov. 2, 2023, 6:22 p.m.