R/first_step.R

Defines functions .first_step

.first_step=function(Data, nprod, nattr, nsub)
{
  dat=as.data.frame(Data)
  for (i in 0:(nprod-1))
  {
    dat[seq(i+1,nsub*nprod,nprod),]=Data[nsub*i+(1:nsub),]
  }
  return(data=dat)
}

Try the ClustBlock package in your browser

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

ClustBlock documentation built on Aug. 30, 2023, 5:08 p.m.