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.
[TABLE="width: 500"]
<tbody>[TR]
[TD]Acura[/TD]
[TD]0.01186[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Aston Martin[/TD]
[TD]0.004237[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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?
[TABLE="width: 500"]
<tbody>[TR]
[TD]Acura [/TD]
[TD] (( should be code for Acura))[/TD]
[/TR]
[TR]
[TD]Aston Martin[/TD]
[TD]((Code for Aston Martin))[/TD]
[/TR]
[TR]
[TD]Aston Martin[/TD]
[TD]((Code for Aston Martin)) [/TD]
[/TR]
[TR]
[TD]BMW[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]Cadillac[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chevrolet[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chrysler[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
If I use if functions this will take forever. What is the most efficient way of doing this?
[TABLE="width: 500"]
<tbody>[TR]
[TD]Acura[/TD]
[TD]0.01186[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Aston Martin[/TD]
[TD]0.004237[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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?
[TABLE="width: 500"]
<tbody>[TR]
[TD]Acura [/TD]
[TD] (( should be code for Acura))[/TD]
[/TR]
[TR]
[TD]Aston Martin[/TD]
[TD]((Code for Aston Martin))[/TD]
[/TR]
[TR]
[TD]Aston Martin[/TD]
[TD]((Code for Aston Martin)) [/TD]
[/TR]
[TR]
[TD]BMW[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD]Cadillac[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chevrolet[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Chrysler[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
If I use if functions this will take forever. What is the most efficient way of doing this?