i’m trying to use drop to select different set of information, but i don’t know if there is the best way to do it. I want to select what is mark with the red arrows, i mean, only the second column and the rows that correspond to females.
I tried what you show me, but i did not work, then i realise that Query is an option only in mathematica 10 and for now i have access to mathematica 9. There is a similar option in mathematica 9?
I’ll add the excel file and the notebook, probably it will help
I was trying the code but i did not work, i think that i am doing something wrong (i am learning). I would like to add the notebook and the excel file, probably i’ll understand better with the code in the notebook
Thanks for the advice. But what i am trying to do is select only one column or any column that is associated to two variables, in this case what i want to do is, for example, select the information in the second column that is associated to a specific gender (male or female) and to the variable 1 VTS (first column). For now i know how to select information that is associated to the variables in the first column, to do that i use Part[Select[data, #[[1]] == “1 VTS” &], All, 3], but i do not know how to do it with the gender.
It will be of great help if you can gave me an example directly in mathematica note book.
the StringContainsQ is only there because the search string contains spaces etc. If you take the exact search string and “double equal” it to #[[7]] it should work, too. If you had MMA10 the StringContainsQ function is slightly better, becaus it gives the result you want and also caters for cases where spaces etc are not always entered in the same way.