cara menambahkan angka acak secara acak di dataaframe di r
# 1000 random numbers with 0 or 1 values:
a <-sample(0:1, 1000, rep = TRUE)
# 0 1 1 0 0 0 1 0 ...
Rocku0
# 1000 random numbers with 0 or 1 values:
a <-sample(0:1, 1000, rep = TRUE)
# 0 1 1 0 0 0 1 0 ...