The Modify Coded Segments section has already described how you can move or copy individual coded segments.
Moving all the coded segments of a code
If you move a code from one position in the “Code System” to another, the code references move automatically together with the code. This is like moving a drawer from one place to another in a cabinet; the drawer’s contents move together.
To move a complete drawer is something other than to move only its contents. The same is true with code assignments. If you only want to move these to another code, you cannot use the procedure described above. There is another procedure that leaves the drawer in its place and merely shifts its contents:
- Right-click on a code in the “Code System”.
- Select Move Coded Segments. This transfers the code references to an internal clipboard. (Up to this point, nothing has really changed in the “Code System”. The number of coded segments for this code remain the same.)
- Right-click the target code and choose Move Coded Segments (from ‘first code‘). MAXQDA asks you to confirm the command before executing it.
The first code remains in the “Code System” until you delete it, but the number of its coded segments is now zero. If you no longer need the code, you can simply delete it from the “Code System“. But be careful: its subcodes will be removed as well!
Handling code conflicts
It may happen that some of the segments which you have moved to the target code have already been coded with this code. Suppose that you move the codings from “Code B” to “Code A”, MAXQDA proceeds as follows in the case of an overlapping code:
- The outer segment boundaries of both encodings are retained. Thus, if a segment with “Code B” is from word 1 to 5 and the words 4 to 10 have already been coded with the target code “A”, the new segment ranges from word 1 to 10.
- If both coded segments have a comment, the comment on the target code is retained. The comment on the moved code is deleted.
- If only one of the two coded segments has a comment, this comment is preserved.
- The coding weights of the target code “A” are retained, regardless of the coding weight of the shifted code.
- If several existing segments of the target code “A” are combined into one large coded segment because they all lie in the segment boundaries of a “B” coded segment, then this large segment receives the weight of the oldest “A” coded segment. Only the comment of the oldest coded segment of “Code A” will be taken, all other comments of code will be deleted, even if the oldest coding has no comment. If none of the existing coded segments has a comment, the comment is taken from “B”.
Because of overlapping coded segments, the number of coded segments of the target code after you shifted codes can, of course, be smaller. If you move 10 coded segments from “Code B” to “Code A” with 20 coded segments and several segments overlap, you will not see 30 but fewer segments under “Code A”.
Copying all the coded segments of a code
The function “Copy Coded Segments” is similar to the “Move Coded Segments” function. The important difference is that the original code assignment will be retained; that is to say, the coded segment will be duplicated and assigned to a new code in addition to the original code.
This action is performed as follows:
- Right-click on the selected code in the “Code System”.
- Select Copy Coded Segments from the context menu that appears.
- Move the cursor to the target code to which you want to copy the coding added and click on it with the right mouse button.
- Select Paste Coded Segments (from ‘old code‘) from the context menu that appears