Re: [R] R-help, please

2015-09-21 Thread MCGUIRE, Rhydwyn
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 | rm...@doh.health.nsw.gov.au
www.health.nsw.gov.au




-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of 
le4...@mweb.co.za
Sent: Tuesday, 22 September 2015 12:15 AM
To: r-help@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@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.

__
R-help@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.


Re: [R] R-help, please

2015-09-21 Thread John Kane
It looks like you sent the e-mail in HTML. 

It is unreadable.

You must sent e-mail to R-help in plain text not HTML

John Kane
Kingston ON Canada


> -Original Message-
> From: le4...@mweb.co.za
> Sent: Mon, 21 Sep 2015 16:14:41 +0200
> To: r-help@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@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.


FREE ONLINE PHOTOSHARING - Share your photos online with your friends and 
family!
Visit http://www.inbox.com/photosharing to find out more!

__
R-help@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.


Re: [R] R-help, please

2015-09-21 Thread Rolf Turner



Your question looks very much like homework and this list does not do 
homework for people.  Talk to your instructor.


cheers,

Rolf Turner

On 22/09/15 02:14, le4...@mweb.co.za wrote:

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


__
R-help@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.


Re: [R] R-help, please

2015-09-21 Thread le4...@mweb.co.za
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@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.