Hi All,
I need to change the labels of the following variables using another file:
Variables in the first file are:
v1: 1A1a1LV ab_dv
v2: 1A1a2IM ab_dv
v3: 1A1a3LV ab_dv
The second file:
+-------------------------------+
| ab_id ab_name |
|-------------------------------|
1. | 1A1a1 //Oral Comprehension |
2. | 1A1a1 //Oral Comprehension |
3. | 1A1a2 //Written Comprehension |
4. | 1A1a2 //Written Comprehension |
5. | 1A1a3 //Oral Expression |
|-------------------------------|
6. | 1A1a3 //Oral Expression |
7. | 1A1a4 //Written Expression |
8. | 1A1a4 //Written Expression |
9. | 1A1b1 //Fluency of Ideas |
10. | 1A1b1 //Fluency of Ideas |
+-------------------------------+
The values in the second column of the second file (ab_name) should be the labels of the variables in the first file. Variable names in the first file begin with values in the first column of the second file (ab_id).
For example the label for v1 should be Oral Comprehension since it begins with 1A1a1 and the label for v2 should be Written Comprehension since it begins with 1A1a2IM
Is there a way to do that? I appreciate your help with it.
I need to change the labels of the following variables using another file:
Variables in the first file are:
v1: 1A1a1LV ab_dv
v2: 1A1a2IM ab_dv
v3: 1A1a3LV ab_dv
The second file:
+-------------------------------+
| ab_id ab_name |
|-------------------------------|
1. | 1A1a1 //Oral Comprehension |
2. | 1A1a1 //Oral Comprehension |
3. | 1A1a2 //Written Comprehension |
4. | 1A1a2 //Written Comprehension |
5. | 1A1a3 //Oral Expression |
|-------------------------------|
6. | 1A1a3 //Oral Expression |
7. | 1A1a4 //Written Expression |
8. | 1A1a4 //Written Expression |
9. | 1A1b1 //Fluency of Ideas |
10. | 1A1b1 //Fluency of Ideas |
+-------------------------------+
The values in the second column of the second file (ab_name) should be the labels of the variables in the first file. Variable names in the first file begin with values in the first column of the second file (ab_id).
For example the label for v1 should be Oral Comprehension since it begins with 1A1a1 and the label for v2 should be Written Comprehension since it begins with 1A1a2IM
Is there a way to do that? I appreciate your help with it.
Comment