Help with randomly replacing values in dataframe with NA

Perhaps this recent thread will help you