I would like to analyze the data designed in the following format.
Table 2:
I would really appreciate your help!! Thank you.
Address 1 (yes=1,no=0) | Address 2 (yes=1,no=0) | Address 3 (yes=1,no=0) | Activity1 (yes=1,no=0) | Activity2 (yes=1,no=0) | Activity3 (yes=1,no=0) | |
Organization 1 | 1 | 0 | 1 | 1 | 0 | 0 |
Organization 2 | 0 | 1 | 0 | 0 | 1 | 1 |
Organization 3 | 0 | 1 | 1 | 0 | 0 | 1 |
- I have a unstructured table with the above design.
- This is the data from a questionnaire asked to each organization whether each organization conduct different types of activities in each addresses.
- I have two questions here:
- From the above table, I would like to know the way to create the following Table1. The numbers in the Table1 is COUNTing the number of organization.
- If no.1 is possible, I also would like to know the way to create the following Table2, which SUMs the number of activities at each address.
Activity1 (yes=1,no=0) | Activity2 (yes=1,no=0) | Activity3 (yes=1,no=0) | |
Address 1 (yes=1,no=0) | 1 | 0 | 0 |
Address 2 (yes=1,no=0) | 0 | 1 | 2 |
Address 3 (yes=1,no=0) | 1 | 0 | 1 |
Table 2:
Activity1 (yes=1,no=0) | Activity2 (yes=1,no=0) | Activity3 (yes=1,no=0) | |
Address 1 (yes=1,no=0) | 1 | 0 | 0 |
Address 2 (yes=1,no=0) | 0 | 1 | 1 |
Address 3 (yes=1,no=0) | 1 | 0 | 1 |
I would really appreciate your help!! Thank you.