large data set and I need to do the following in R

Customer Question

1. To do: Identify rows in the data that have the following error. For some child id, some friend ID's were written multiple times in one row. Find all of these errors and produce an excel spreadsheet with row numbers where this error occurs (do not fix them; Amori needs to fix them).

2. To do: Fix the following error. When the child is by him/herself, the quality variable should always be N/A. Attached is the data file

It would be preferred if it was written in R as there are other scripts that deal with the data set that have already been written in R and would be easier to integrate all of them.

To Do #1: For example if I looked at row 7858, it will have session 1, day 10, childid 664, coder kanesha, column f1 through f10 represents the id of children which childid 664 was playing with at the time, if for example 506 is written twice in any of the f1-f10 columns then the script should output this as an error in an excel spreadsheet indicating which row and column it was found (this is not a real example from the data, but it gives you an idea of what needs to be looked for in the data)

To Do #2: For example say row 2, session 1, day 3, childid 501, coder Katie, if all of the columns f1-f10 are NA then the column quality should also say NA (not 2 or 1) note: this is also not a real example from the data

Thank you! Hope this was a clear explanation. Please let me know if you need any more details.

Ok, got it. I'll include a script within the excel file to do so. You can run the script using a shortcut key I'll assign, then it will search for these two error in the active spreadsheet and generate results.

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. RobinElkton, Maryland

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.DianeDallas, TX

Ask a Tutor

Get a Professional Answer. 100% Satisfaction Guaranteed.

114 Tutors are Online Now

Type Your Homework Question Here...

characters left:

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.