surveycto / stata-scto

Stata utilities for SurveyCTO users
Apache License 2.0
9 stars 2 forks source link

multiple audio audits #18

Open rohan-econ opened 7 months ago

rohan-econ commented 7 months ago

Hi, I want to use sctomedia for multiple audio audits for each observation. How do I go about that?

martacto commented 7 months ago

Hi, Thank you for reaching out! If you would like to use sctomedia for multiple media variables, you will need to run the command twice - one for each audio audit variable. In case you want to use the by() option, i.e., create sub-folders and organize your audio audits based on specific variables, that's still possible. SurveyCTO won't create/duplicate sub-folders if they already exist. They will be created when you run the command the first time only. Does this make sense?

rohan-econ commented 7 months ago

Hi,

When I use the command twice, the media gets replaced because it follows the same naming convention and folder organisation. Is there anyway I can store multiple files for same key ?

Best, Rohan

On Thu, Apr 18, 2024 at 20:36 martacto @.***> wrote:

Hi, Thank you for reaching out! If you would like to use sctomedia for multiple media variables, you will need to run the command twice - one for each audio audit variable. In case you want to use the by() option, i.e., create sub-folders and organize your audio audits based on specific variables, that's still possible. SurveyCTO won't create/duplicate sub-folders if they already exist. They will be created when you run the command the first time only. Does this make sense?

— Reply to this email directly, view it on GitHub https://github.com/surveycto/stata-scto/issues/18#issuecomment-2064148294, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQDS6BNNEV6O6FSG6G2AFK3Y57ON3AVCNFSM6AAAAABGNEICNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRUGE2DQMRZGQ . You are receiving this because you authored the thread.Message ID: @.***>

martacto commented 7 months ago

Hi Rohan, That's exactly why you need to run the command twice - so that you specify a different naming convention and allow for different files to have different names. A file name must be unique. Since any operating system won't allow you to have different files with the same name, what would be the best solution for you? You can use Stata to help you achieve what you are looking for. For example, let's imagine that you are using the variable "name" to name your audio audits. You can create a new variable named "name_2" and concatenate the suffix "_2" into all your names. This way, you can use this variable for your second audio audit variable.

martacto commented 7 months ago

Hi Rohan,

Were you able to overcome the problem? Do you have any follow up concerns/questions? Otherwise, I will close this issue.

Thank you, Marta

rohan-econ commented 7 months ago

Hi,

I figured out a different approach but worked. Thanks. Please close the ticket.

On Thu, 2 May 2024 at 19:15, martacto @.***> wrote:

Hi Rohan,

Were you able to overcome the problem? Do you have any follow up concerns/questions? Otherwise, I will close this issue.

Thank you, Marta

— Reply to this email directly, view it on GitHub https://github.com/surveycto/stata-scto/issues/18#issuecomment-2090542209, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQDS6BOYFQZAXEIV6UUT7VTZAI7RHAVCNFSM6AAAAABGNEICNWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJQGU2DEMRQHE . You are receiving this because you authored the thread.Message ID: @.***>

martacto commented 7 months ago

Hi Rohan,

Thank you for confirming! Would you mind sharing the approach that worked for you so that anyone looking for a similar solution can learn from you?