[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: Converting string variable name into numbers
> I am currently working with a survey dataset that includes
> responses from
> participants regarding their dominant language. The answers
> are string
> variables, since they are "english", "spanish", etc.
> Basically the data
> looks like this
> Obs1 English
> Obs2 Spanish
> Obs3 French
> Obs4 English
> I would like to create dummy variables where every "english"
> response gets
> coded a 1 and other responses are coded a 0, do the same thing for
> "spanish", etc. .
* For searches and help try: