You can determine the column index of the column whose sum is greatest among the columns with non missing values in this way:
dataAvailIdx <- which(apply(data,2,function(x) any(!is.na(x))))
dataAvailIdx[which.max(colSums(data[,dataAvailIdx],na.rm=TRUE))]