CODAP › Forums › CODAP Help Forum › Data subsetting
Tagged: selection
- This topic has 8 replies, 4 voices, and was last updated 2 months, 1 week ago by .
-
AuthorPosts
-
rwrr30@gmail.comParticipant
Is there a way to code data based on a selection in the graph window or through a function that uses boolean logic?
I am trying to extract the mean of values from different parts of my raw data. I have done a kludgy work around using Set Aside but I’d like to have a new attribute (‘Angle (deg)) that would allow me to do the means and later analysis directly.
BTW, I could not figure out how to paste values into multiple cells. Is that possible?
Thanks for any suggestions.
Regards,
David L. Erhart, PhD
Attachments:
July 23, 2024 at 9:32 pm #8851Bill FinzerKeymasterHello,
The Choosy builtin plugin may be of help. Notice that in the screenshot using the Tag Cases tab you can create an attribute and assign values based on selection.
Does that get at least partway to solving your problem?
Bill
Attachments:
July 24, 2024 at 3:35 pm #8856rwrr30@gmail.comParticipantThanks, Bill. That worked. It’s a bit glitchy. I could only make choosy work in the table not with selections from the graph. Is that the intended functionality?
Also, the graph using the grouped means did not format the same way the graph that was created from a separate table of vales did. for example, the y-axis did not have tick marks.
July 24, 2024 at 3:36 pm #8857rwrr30@gmail.comParticipantfile was too large. trying again
Attachments:
July 24, 2024 at 4:02 pm #8859Dan DamelinKeymasterCan you share the dataset (CSV) or the CODAP document (by going to the hamburger menu to the left of the document title and choosing Share->Get link to shared view)?
I have an idea about a way to use a formula to pick out these sections that don’t change by much compared with other sections.
July 24, 2024 at 4:36 pm #8864rwrr30@gmail.comParticipantI’ve tried replying twice but they are not showing up in the thread.
July 25, 2024 at 12:55 am #8867Dan DamelinKeymasterTry sending to codap@concord.org.
- This reply was modified 2 months, 2 weeks ago by Dan Damelin.
August 20, 2024 at 6:02 pm #8952belladaines061@gmail.comParticipantYes, you can code data based on a selection in the graph window or through a function using Boolean logic. Here’s a general approach that might help you:
- Using Boolean Logic for Data Selection: You can create a new attribute, such as ‘Angle (deg)’, by applying Boolean logic to your raw data. For example, you could use a function like
IF
to assign values based on conditions. In Excel or similar software, it might look like this:
=IF(A2 > 30, “High Angle”, “Low Angle”)
- This would categorize your data into ‘High Angle’ or ‘Low Angle’ based on your condition.
- Calculating the Mean: Once you’ve categorized your data, you can easily calculate the mean for each category. If you’re using Excel, you might use the
AVERAGEIF
function:=AVERAGEIF(B2:B100, “High Angle”, C2:C100)
-
- This will calculate the mean of the values in column C where the condition in column B (your new attribute) is “High Angle.”
- Pasting Values into Multiple Cells: If you’re trying to paste values into multiple cells at once, you can usually do this by copying the desired value, selecting the range where you want to paste, and then pasting. In Excel, you might use
Ctrl+V
or right-click and select “Paste.” If you’re dealing with formulas, make sure your cell references are set up correctly to apply the formula across multiple cells.
If you’re using a specific software tool, the exact steps might differ slightly, but the general principles remain the same.
Hope this helps!
August 20, 2024 at 10:28 pm #8953rwrr30@gmail.comParticipantThanks for the follow up. I will try your recommendations.
-
AuthorPosts
- The forum ‘CODAP Help Forum’ is closed to new topics and replies.