Question

1. A tidy version of the Lucky Iron Fish data can be found in the Lecture...

1. A tidy version of the Lucky Iron Fish data can be found in the Lecture Datasets (tidy) section of the Blackboard course page. The file is titled lif.csv. Read the LIF data into R. a. Assume that we are interested in computing the average dissolved iron over all experimental conditions, but we realized that the lemon juice we had used in the experiment had been contaminated. Using R, compute the median ferrious iron release (fe2) after removing or filtering out lemon juice and tap water. Note that the function median can be used to compute the median. Paste your R code/output into your solutions.

Acid pH rep fe2 tot_iron acid_ph
Tap Water 7.19 0 0.6 0.56 Tap Water-7.19
Tap Water 7.19 0 0.6 0.36 Tap Water-7.19
Tap Water 7.19 0 0.6 0.32 Tap Water-7.19
Ascorbic Acid 4 1 30.10239 29.25 Ascorbic Acid-4
Ascorbic Acid 4 2 23.27645 25.18 Ascorbic Acid-4
Ascorbic Acid 4 3 28.56655 30.87 Ascorbic Acid-4
Ascorbic Acid 4.5 1 4.607509 9.261 Ascorbic Acid-4.5
Ascorbic Acid 4.5 2 5.494881 11.03 Ascorbic Acid-4.5
Ascorbic Acid 4.5 3 4.914676 11.05 Ascorbic Acid-4.5
Ascorbic Acid 5 1 0.6 2.497 Ascorbic Acid-5
Ascorbic Acid 5 2 0.6 2.687 Ascorbic Acid-5
Ascorbic Acid 5 3 0.6 4.094 Ascorbic Acid-5
Ascorbic Acid 5.5 1 0.6 0.335 Ascorbic Acid-5.5
Ascorbic Acid 5.5 2 0.6 1.112 Ascorbic Acid-5.5
Ascorbic Acid 5.5 3 0.6 0.4022 Ascorbic Acid-5.5
Lemon Juice 4 1 14.30034 36.2 Lemon Juice-4
Lemon Juice 4 2 26.72355 39.03 Lemon Juice-4
Lemon Juice 4 3 21.77474 26.2 Lemon Juice-4
Lemon Juice 4.5 1 2.116041 18.26 Lemon Juice-4.5
Lemon Juice 4.5 2 5.085324 20.89 Lemon Juice-4.5
Lemon Juice 4.5 3 2.696246 17.41 Lemon Juice-4.5
Lemon Juice 5 1 0.6 11.89 Lemon Juice-5
Lemon Juice 5 2 0.6 9.519 Lemon Juice-5
Lemon Juice 5 3 0.6 9.558 Lemon Juice-5
Lemon Juice 5.5 1 0.6 6.269 Lemon Juice-5.5
Lemon Juice 5.5 2 0.6 4.639 Lemon Juice-5.5
Lemon Juice 5.5 3 0.6 3.134 Lemon Juice-5.5
Acetic Acid 4 1 42.01365 49.16 Acetic Acid-4
Acetic Acid 4 2 46.14334 50.77 Acetic Acid-4
Acetic Acid 4 3 41.74061 41.87 Acetic Acid-4
Acetic Acid 4.5 1 23.03754 23.17 Acetic Acid-4.5
Acetic Acid 4.5 2 23.68601 22.53 Acetic Acid-4.5
Acetic Acid 4.5 3 26.65529 27.03 Acetic Acid-4.5
Acetic Acid 5 1 3.481229 6.92 Acetic Acid-5
Acetic Acid 5 2 5.972696 8.85 Acetic Acid-5
Acetic Acid 5 3 3.447099 6.235 Acetic Acid-5
Acetic Acid 5.5 1 0.6 1.78 Acetic Acid-5.5
Acetic Acid 5.5 2 0.6 1.316 Acetic Acid-5.5
Acetic Acid 5.5 3 0.6 0.6915 Acetic Acid-5.5
Acid pH rep fe2 tot_iron acid_ph
Tap Water 7.19 0 0.6 0.56 Tap Water-7.19
Tap Water 7.19 0 0.6 0.36 Tap Water-7.19
Tap Water 7.19 0 0.6 0.32 Tap Water-7.19
Ascorbic Acid 4 1 30.10239 29.25 Ascorbic Acid-4
Ascorbic Acid 4 2 23.27645 25.18 Ascorbic Acid-4
Ascorbic Acid 4 3 28.56655 30.87 Ascorbic Acid-4
Ascorbic Acid 4.5 1 4.607509 9.261 Ascorbic Acid-4.5
Ascorbic Acid 4.5 2 5.494881 11.03 Ascorbic Acid-4.5
Ascorbic Acid 4.5 3 4.914676 11.05 Ascorbic Acid-4.5
Ascorbic Acid 5 1 0.6 2.497 Ascorbic Acid-5
Ascorbic Acid 5 2 0.6 2.687 Ascorbic Acid-5
Ascorbic Acid 5 3 0.6 4.094 Ascorbic Acid-5
Ascorbic Acid 5.5 1 0.6 0.335 Ascorbic Acid-5.5
Ascorbic Acid 5.5 2 0.6 1.112 Ascorbic Acid-5.5
Ascorbic Acid 5.5 3 0.6 0.4022 Ascorbic Acid-5.5
Lemon Juice 4 1 14.30034 36.2 Lemon Juice-4
Lemon Juice 4 2 26.72355 39.03 Lemon Juice-4
Lemon Juice 4 3 21.77474 26.2 Lemon Juice-4
Lemon Juice 4.5 1 2.116041 18.26 Lemon Juice-4.5
Lemon Juice 4.5 2 5.085324 20.89 Lemon Juice-4.5
Lemon Juice 4.5 3 2.696246 17.41 Lemon Juice-4.5
Lemon Juice 5 1 0.6 11.89 Lemon Juice-5
Lemon Juice 5 2 0.6 9.519 Lemon Juice-5
Lemon Juice 5 3 0.6 9.558 Lemon Juice-5
Lemon Juice 5.5 1 0.6 6.269 Lemon Juice-5.5
Lemon Juice 5.5 2 0.6 4.639 Lemon Juice-5.5
Lemon Juice 5.5 3 0.6 3.134 Lemon Juice-5.5
Acetic Acid 4 1 42.01365 49.16 Acetic Acid-4
Acetic Acid 4 2 46.14334 50.77 Acetic Acid-4
Acetic Acid 4 3 41.74061 41.87 Acetic Acid-4
Acetic Acid 4.5 1 23.03754 23.17 Acetic Acid-4.5
Acetic Acid 4.5 2 23.68601 22.53 Acetic Acid-4.5
Acetic Acid 4.5 3 26.65529 27.03 Acetic Acid-4.5
Acetic Acid 5 1 3.481229 6.92 Acetic Acid-5
Acetic Acid 5 2 5.972696 8.85 Acetic Acid-5
Acetic Acid 5 3 3.447099 6.235 Acetic Acid-5
Acetic Acid 5.5 1 0.6 1.78 Acetic Acid-5.5
Acetic Acid 5.5 2 0.6 1.316 Acetic Acid-5.5
Acetic Acid 5.5 3 0.6 0.6915 Acetic Acid-5.5
0 0
Add a comment Improve this question Transcribed image text
Answer #1

install.packages("dplyr")

library(dplyr)

lif <- read.csv("lif.csv")

filtered_lif <- lif %>% filter(Acid != "Lemon Juice" & Acid != "Tap Water")

median_fe2 <- median(filtered_lif$fe2)

** If any confusion please comment

Add a comment
Know the answer?
Add Answer to:
1. A tidy version of the Lucky Iron Fish data can be found in the Lecture...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1. 1x10^-9 moles of strong acid HCl are added to of water (total volume is 1L)....

    1. 1x10^-9 moles of strong acid HCl are added to of water (total volume is 1L). the pH of the resulting solution is... a)9 b)8 c)7 d)5 e)2 I got 9 but got the answer incorrect, so i would like to know how to solve this properly and what is the final answer. 2. the pKa of acetic acid is 4.76. if the pH=4.76 and the concentration of sodium acetate is 0.1M, what is the concentration of acetic acid? a)0.05...

  • In the titration below acetic acid (CH CooH)i (a) What is the volume of NaOH used to neutralize t...

    In the titration below acetic acid (CH CooH)i (a) What is the volume of NaOH used to neutralize the acetic ac neutralized with 0.5 M NaOH. id? (3 pts) (b) What is the concentration of the acetic acid solution? (7 pts) nial Reading 15m Burette Final Reading 32 ml NeDH (aq Known Concentraton )+20mt_灬| 1 of Total volume of 2 on vnegar ies 5 drops acetic acid 25ml c) An acid solution is titrated to the end point by a...

  • Data: Table 1: A comparison of pH of the water in fish tanks with various amounts of fish and aquatic plants after 1 wee...

    Data: Table 1: A comparison of pH of the water in fish tanks with various amounts of fish and aquatic plants after 1 week Tank Set-up pH of water after 1 week 1 1 fish 5 2 1 fish and several aquatic plants 7 3 3 fish and several aquatic plants 6.7 4 Several aquatic plants 7 5 Several aquatic plants (tank wrapped in aluminum foil) 7 6 1 fish and several aquatic plants (tank wrapped in aluminum foil) 5.5...

  • Experiment Properties of Solutions 112/ Roll No. Name: Section:__ Date: Post-lab Questions 1. Did you observe...

    Experiment Properties of Solutions 112/ Roll No. Name: Section:__ Date: Post-lab Questions 1. Did you observe a difference in conductivity of deionized water and tap water. If yes, explain why there is a difference 2. What was the conductivity of solid sodium chloride? What was the conductivity of the mixture when water was added to the salt? Explain your observations 3. Indicate whether solutions of each of the following contain (a) only ions, (b) only molecules, or (c) mostly molecules...

  • Experiment Properties of Solutions 112/ Roll No. Name: Section:__ Date: Post-lab Questions 1. Did you observe a dif...

    Experiment Properties of Solutions 112/ Roll No. Name: Section:__ Date: Post-lab Questions 1. Did you observe a difference in conductivity of deionized water and tap water. If yes, explain why there is a difference 2. What was the conductivity of solid sodium chloride? What was the conductivity of the mixture when water was added to the salt? Explain your observations 3. Indicate whether solutions of each of the following contain (a) only ions, (b) only molecules, or (c) mostly molecules...

  • Data: Table 1: A comparison of pH of the water in fish tanks with various amounts...

    Data: Table 1: A comparison of pH of the water in fish tanks with various amounts of fish and aquatic plants after 1 week Tank Set-up pH of water after 1 week 1 1 fish 5 2 1 fish and several aquatic plants 7 3 3 fish and several aquatic plants 6.7 4 Several aquatic plants 7 5 Several aquatic plants (tank wrapped in aluminum foil) 7 6 1 fish and several aquatic plants (tank wrapped in aluminum foil) 5.5...

  • 1. Using Sigma-Aldrich website or Merck Index website or Google search find and draw structures for...

    1. Using Sigma-Aldrich website or Merck Index website or Google search find and draw structures for the following compounds. (a) Atropine (b) Hydroxychloroquine (c) Saccharin (d) Cholesterol (e) Vitamin C (ascorbic acid) 2. Find the melting points for the following compounds by using Sigma-Aldrich or Google search (a) Biphenyl (b) 4-bromobenzoic acid (C) 3-nitrophenol 9. Chlorine, bromine and iodine all react with alkenes such as ethene in an addition reaction (a) Write the equation for the bromination of ethene, and...

  • please solve the calculation page DATA SHEET: PH, BUFFERS AND K, Part 1: The Titration of...

    please solve the calculation page DATA SHEET: PH, BUFFERS AND K, Part 1: The Titration of a STRONG ACID (HCI) with NaOH using pH meter a) pH of 25 mL distilled water 5.65 (Measure volume with graduated cylinder) b) pH of 25 mL distilled water with 1 drop 1.0 M HCI 2.92 c) pH of 25 mL distilled water with 10 drops 1.0 M HCI (Note: (H') in 2c is about 10 times that of 2b) 1.10 d) Titration of...

  • 1) What chemical is the titrant in this experiment? What chemical is the analyte in this experiment? Experi...

    1) What chemical is the titrant in this experiment? What chemical is the analyte in this experiment? Experiment #8: Measuring the Vitamin C Content of Emergen-C™ Objectives: • Students will learn how to use a burette. • Students will learn how to use the iodine starch indicator system to monitor oxidation/reduction reactions. Students will learn how to conduct a titration to determine the amount of analyte in an unknown solution. • Students will learn about ascorbic acid's role as a...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT