Question: for r studio 1_ _ Day 2_ _ Week 3_ _ Month 300 Less than once a month 555 Never 777 Don't Know 999 Refused

for r studio

1_ _ Day 2_ _ Week 3_ _ Month 300 Less than once a month 555 Never 777 Don't Know 999 Refused If a respondent indicates that they consume a food item every day then enter the number of times per day. If the respondent indicates that they eat a food less than daily, then enter times per week or time per month. Do not enter time per day unless the respondent reports that he/she consumed that food item each day during the past month. Enter quantity in times per day, week, or month. If respondent gives a number without a time frame, ask "was that per day, week, or month?" Read if respondent asks what to include or says 'i don't know': include fresh, frozen or canned fruit. Do not include dried fruits.

using this information.... can you

Now we will clean the variable that measures how often the respondent ate fruit per day or per week or per month. Create a new dataframe named `brf_Q5a` that is the same as `brf_Q2` except that you'll add a new variable to it named `FRTDAY` that converts all of the responses into fruits eaten *per day*. Be sure to account for 0 days. Use 30 days per month, 7 days per week, and 0.02 for less than once a month in your conversion calculations. Be sure to round any conversion calculations to two decimal places. Place the new column as the first column in the dataframe.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Law Questions!