Displaying 1 result from an estimated 1 matches for "fillch4".
Did you mean:
filechk
2012 Jul 19
1
problem replacing NA's in a dataset (10% remain after removal attempt)
...:
the dataset is 4464x14 called hourly.data
I've already replaced all NaN values with NA
#filPFD is a column of ambient light levels, it has no NA values, all
values are real and either 0 or >0
#month is a column with values between 7 and 12 depending on the month
the data was collected
#fillCH4 is a column containing CH4 flux data that I am trying to gap-fill
#night_median and day_median are 1x6 vectors with the median flux values
for each month
temp<-hourly.data[hourly.data$month==7,]
darkmonth<-(temp$filPFD==0)
daymonth<-(temp$filPFD>0)
temp[is.na(temp[darkmonth,"fill...