1

Dear Open Foris Community,

We struggle with the following problem regarding Collect and later the data analysis of the collected data. We have a code list for habitat features of our trees and the field teams can choose up to 10 variables at the same time. The problem at the moment is that they are transferred into the database in the order they were clicked on in the field and not chronologically into the columns with the applicable numbers. Is there any easy solution to this? We just thought that it would be easier if we didn’t have to do this manually during the cleansing phase. This is what we would wish for it to look like. (see table 1) https://drive.google.com/drive/folders/0B1GL4ASXM8jjYmRYQVFzZGlTZ0E

At the moment it looks like this: (see table 2) https://drive.google.com/drive/folders/0B1GL4ASXM8jjYmRYQVFzZGlTZ0E

But of course we are open to other ideas to solve this issue, we assume others have struggled with similar attributes. Possibly our approach is overcomplicating the whole process.

Thank you for your help!

2

Accepted answer

Hi Beka!
In the exported csv file, a multiple code attribute is exported into several columns, each column corresponding to the position of the selected values (e.g. tree_habitat1 = first selected value, tree_habitat[2] = second selected value, tree_habitat[N] = Nth selected value...).
If you want to see the values in a different way, you can select among the Additional options of the CSV export Expand code attributes (add boolean columns for each code value).
The result will be a csv file with additional columns, one per each value of tree_habitat (e.g tree_habitat_1, tree_habitat_2) and true or false if the value has been selected or not.
csv data export additional options Thanks,
Open Foris Team

2

Accepted answer

Hello Beka,

I offer another solution. I assume that in your code list for habitat features there are more than 10 options. Anyway, create 10 (code) attributes for your entity, hab1..hab10. Set them as Not required, and add custom checks for hab2..hab10, as follows

alt text

alt text

alt text

I am missing the custom error message in this example but that you can add as needed.

This is not giving from Collect exactly that table what you are looking for, but in the data analysis you can get frequencies for categories in hab1..hab10 as necessary.

Regards, Lauri

Still as a comment: solution above is clumsy from the data entry point of view! It is lacking the advantage doing multiple selections at one time.

Lauri (OF) Lauri (OF) ♦♦
2

Accepted answer

Beka, OF Team programmer can help in that question regarding error message. I have - again - a bit different solution: add habitat selections into a calculated text field. This additional text field (Dist_txt below) can be set invisible (deselect Show in entry form). Use function shown below

alt text

alt text

When exporting the data into CSV, all selections goes into one field, which requires parsing in R or Excel.

-Lauri

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.