Skip to content

Commit 5694223

Browse files
Update dhfr-handling-missing-data.R
1 parent 1116717 commit 5694223

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dhfr/dhfr-handling-missing-data.R

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,13 @@ na.gen <- function(data,n) {
3131
}
3232

3333

34-
# Choose 1 of the following to run (they'll produce the same result)
34+
# Before introducing NA to the dataset, leave the Y class label (output variable) out
3535

3636
dhfr <- dhfr[,-1]
3737

38+
39+
# Choose 1 of the following to run (they'll produce the same result)
40+
3841
dhfr <- na.gen(dhfr,100)
3942

4043
dhfr <- na.gen(n=100,data=dhfr)

0 commit comments

Comments
 (0)