調査のデータがあります。これは、次のような質問から来ています。
Did you do any of the following activities during your PhD
Yes, paid by my school. Yes, paid by me. No.
Attended an internationl conference?
Bought textbooks?
データは次のようにスプレッドシートに自動的に保存されます。
id conf.1 conf.2 conf.3 text.1 text.2 text.3
1 1 1
2 1 1
3 1 1
4 1 1
5
これは、参加者1が大学が支払った会議に参加したことを意味します。参加者2は彼が支払った会議に出席し、参加者3は参加しませんでした。
conf.1、conf.2、conf.3、text.1、text.2、text.3を1つの変数にマージしたい
id new.conf new.text
1 1 2
2 2 1
3 3 1
4 3 3
where the number now respresents the categories of the survey question
Thanks for your help