I have a matrix of ceros, for example:
0              0              0              0
0              0              0              0
0              0              0              0
And I would like that one of these values turn into 1, for example if one 
condition is got, but not in a concrete position if not randomly.
Could you indicate me the code to can get it?

Thanks in advance,
Judit Barroso

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to