learningstatistics
Board Regular
- Joined
- Dec 3, 2015
- Messages
- 56
I encoded my nominal variables and I need to fill them out in a column. In other words, here is a table that shows a certain class and its corresponding code.
<tbody>
</tbody>
I have 100 different types of cars in the table above with each car having it's own code.
I have a column that has data in this fashion and I need to fill out the code for the car (based on the table above). How do I do that?
<tbody>
</tbody>
If I use if functions this will take forever. What is the most efficient way of doing this?
Acura | 0.01186 | |
Aston Martin | 0.004237 |
<tbody>
</tbody>
I have 100 different types of cars in the table above with each car having it's own code.
I have a column that has data in this fashion and I need to fill out the code for the car (based on the table above). How do I do that?
Acura | (( should be code for Acura)) |
Aston Martin | ((Code for Aston Martin)) |
Aston Martin | ((Code for Aston Martin)) |
BMW | ... |
Cadillac | |
Chevrolet | |
Chrysler |
<tbody>
</tbody>
If I use if functions this will take forever. What is the most efficient way of doing this?