jeudi 28 janvier 2021

How do I create a column with two values (or names) at a given weight in R

I'm trying to create a column in my data in .dbf. I need to create a column in which 70% is 0 (or TRUE) and 30% is 1 (or FALSE), only at random.

How can I do this?




Aucun commentaire:

Enregistrer un commentaire