Displaying 1 result from an estimated 1 matches for "dpdata".
Did you mean:
pdata
2005 Jun 23
1
Stop Warnings for Invalid Factor Level, NAs generated?
...ll work up some sample data and code if
no solutions are found.
...snip
> # Get info on first and last pair sets and lab names in last pair
> nlabs <- labdata[["LABNUMBER"]] #e.g. 1, 2, 5, 6, ...
> nolabs <- length(nlabs) #Total number of labs in last pair of labdata
> #dpdata <- labdata[which(labdata[["LABNUMBER"]] == 13),] #Dummy paired
data row
> dpdata <- rbind(labdata[0,], NA)
> pdata <- dpdata
> # Loop through pairs of labdata to build pdata for pairs (last 10 years
or less)
> k=0
> for(j in nlabs){
+ for(i in ifpair:ilpair){
+...