Displaying 1 result from an estimated 1 matches for "tp4645801".
Did you mean:
tp4644881
2012 Oct 11
2
Converting factors to bounded random numerical data
I have a data set (a) with 3 columns (X,Y,Z). The first 2 columns are
numerical. The third column (Z) is a factor with three levels ("A","B","C").
What I want to do is turn each of the "A's" into different random numbers
between 1 and 4, "B's" into a random number between 5 and 8, etc.
I tried this: