- This topic has 8 replies, 4 voices, and was last updated 4 months ago by Bill Finzer.
-
AuthorPosts
-
rwrr30@gmail.comMember
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
July 23, 2024 at 9:32 pm #10459Bill 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
July 24, 2024 at 3:35 pm #10458rwrr30@gmail.comMemberThanks, 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 #10457rwrr30@gmail.comMemberfile was too large. trying again
July 24, 2024 at 4:02 pm #10456Dan 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 #10455rwrr30@gmail.comMemberI’ve tried replying twice but they are not showing up in the thread.
July 25, 2024 at 12:55 am #10454Dan DamelinKeymasterTry sending to codap@concord.org.
August 20, 2024 at 6:02 pm #10453belladaines061@gmail.comMemberYes, 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 #10452rwrr30@gmail.comMemberThanks for the follow up. I will try your recommendations.
- 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
-
AuthorPosts
- You must be logged in to reply to this topic.