search for: ncycle

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

Did you mean: cycle
2008 Mar 12
1
Problem when calling FORTRAN subroutine (dll)
...for any help I can receive. I am not god with FORTRAN - very very infrequent FORTRAN user. I am using R 2.4.0. Regards Krishna. > rm(list=ls(all=TRUE)) > dyn.load("c:/smooth.dll") > is.loaded("smooth") [1] TRUE > NROW<-4 > NCOL<-4 > NDIM<-4 > NCYCLE<-5 > X<-array(c(0.05,0.2,0.35,0.43,0.09,0.29,0.41,0.55,0.2,0.33,0.55,0.7,0.33,0.48,0.6,0.8)) > W<-array(rep(1.0,length(X))) > X<-matrix(X,nrow=4,ncol=4) > X<-t(X) > W<-matrix(W,nrow=4,ncol=4) > A<-array(0,dim=c(NROW,NCOL,4)) > B<-array(0,dim=c(NDIM,5)) &...
2010 Aug 25
4
Merging two data set in R,
Dear R Gurus, I am currently working on the two dataset ( A and B), they both have the same fields: ID , REGION, OFFICE, CSTART, CEND, NCYCLE, STATUS and CB. I want to merge the two data set by ID. The problem I have is that the in data A, the ID's are unique. However in the data set B, the ID's are not unique, thus some repeat themselves. How do I the merge or retrieve the common ones? Please advise. Kind Regards...
2006 Feb 07
1
Reading in FORTRAN data using R
...o FORMAT. For example: My FORTRAN code writes out: open(unit=30,name=fnout,status='old') write(30,'(a20)') fnmod write(30,'(a20)') fnstr write(30,*) nfault,hpl,vplx,vply,taua,tauf,amuu, & tminn,tstepp,itime,TBIS,bulkms,ntm,ncycle,pdcy write(30,*) ptrad write(30,'(a1)') respfb write(30,*) (timi(n), n=1,nfault) write(30,*) (taub(n), n=1,nfault) write(30,*) (delts(n), n=1,nf) write(30,*) (cfr(n), n=1,nfault) write(30,*) (dfr(n), n=1,nfault) write(30,*) (slpdf(n), n=1,nf2)...
2011 Apr 28
1
Coding design with repeated measurements in the survey package
...). Can someone confirm that it is either correct or wrong? I've added the lmer() equivalent that I want to replicate with svyglm(). Since the number of sites in the population is limited, I'll need to use the finite population correction. Thanks in advance. Thierry #create a small design nCycle <- 3 nYearPerCycle <- 3 nSitePerYear <- 5 Design <- expand.grid(SiteInYear = seq_len(nSitePerYear), YearInCycle = seq_len(nYearPerCycle), Cycle = seq_len(nCycle)) Design$Year <- (Design$Cycle - 1)*nYearPerCycle + Design$YearInCycle Design$Site <- Design$SiteInYear + (Design$YearIn...
2009 Jan 07
0
How-To extract data from a matrix of lists subject to a set of given constraints
...di.mat (i=1,2,...,11) matrix slot is assigned a DWT coefficient modulus and the signal and cycle number it belongs to: coef <- abs (as.numeric (aa.dwt$data[[n]])) #GET DWT COEFFICIENTS .......................................................... for (k in 1:length(coef)) { d7.mat [[nCycle ,k]] <- list (data=coef [k],variable=paste(insig,":",cyc,sep="")) } As a consequence d7.mat contains the following: [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] List,2 List,2 List,2 List,2 NULL NULL NULL NULL NULL NULL My g...