[R] R-help, please

MCGUIRE, Rhydwyn rmcgu at doh.health.nsw.gov.au
Tue Sep 22 01:06:02 CEST 2015


Hi Kim, this sounds like a homework question which is not meant for this list, I don't believe you need a package for this, but you may find the ifelse function along with the sum()function useful. You can get more information by typing ?ifelse and ?sum into R.

Regards,
Rhydwyn


Rhydwyn McGuire
Senior Biostatistician | Health Statistics NSW
Level 7, 73 Miller St, North Sydney 2060
Tel 02 9391 9781 | rmcgu at doh.health.nsw.gov.au
www.health.nsw.gov.au




-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of le4864 at mweb.co.za
Sent: Tuesday, 22 September 2015 12:15 AM
To: r-help at R-project.org
Subject: Re: [R] R-help, please

Good day,
My name is Kim Nguyen and please I need your help with: How to calculate the PASS rate of the data in the table below, with PASS in a single subject if value>=50 and PASS will be given if PASS 3 out of 4 subjectsWhich package will I need to use in this analysis




ID

Literacy

Maths

Physics

Chemistry


A

65

70

79

80


B

65

45

38

50


C

50

62

48

49


D

70

85

82

84


E

45

69

65

62

I appreciate your consultant very much
With kind regardsKim Nguyen
Sent from MWEB Message Centre - CONNECT AND YOU CAN

	[[alternative HTML version deleted]]

______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
__________________________________________________________________________________________________________
This email has been scanned for the NSW Ministry of Health by the Websense Hosted Email Security System.
Emails and attachments are monitored to ensure compliance with the NSW Ministry of health's Electronic Messaging Policy.
__________________________________________________________________________________________________________
_______________________________________________________________________________________________________
Disclaimer: This message is intended for the addressee named and may contain confidential information.
If you are not the intended recipient, please delete it and notify the sender.
Views expressed in this message are those of the individual sender, and are not necessarily the views of the NSW Ministry of Health.
_______________________________________________________________________________________________________
This email has been scanned for the NSW Ministry of Health by the Websense Hosted Email Security System.
Emails and attachments are monitored to ensure compliance with the NSW Ministry of Health's Electronic Messaging Policy.



More information about the R-help mailing list