Re: [R] Deleting rows with special character

2012-11-16 Thread Marc Schwartz
On Nov 16, 2012, at 8:26 AM, Sarah Goslee wrote: > Hi Peter, > > On Fri, Nov 16, 2012 at 9:04 AM, Peter Kupfer wrote: >> Dear all, >> maybe a simple problem but I found no solution for my problem. >> I have a matrix Y with 23 000 rows and 220 colums. The entries are "A", "B" >> or "C". > > A

Re: [R] Deleting rows with special character

2012-11-16 Thread arun
#[1] 16 A.K. - Original Message - From: Peter Kupfer To: "r-help@r-project.org" Cc: Sent: Friday, November 16, 2012 9:04 AM Subject: [R] Deleting rows with special character Dear all, maybe a simple problem but I found no solution for my problem. I have a matrix Y with

Re: [R] Deleting rows with special character

2012-11-16 Thread John Kane
thanks John Kane Kingston ON Canada > -Original Message- > From: peter.kup...@me.com > Sent: Fri, 16 Nov 2012 15:32:23 +0100 > To: sarah.gos...@gmail.com > Subject: Re: [R] Deleting rows with special character > > Hey Sara, > first: Thanks for the fast re

Re: [R] Deleting rows with special character

2012-11-16 Thread John Kane
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example John Kane Kingston ON Canada > -Original Message- > From: peter.kup...@me.com > Sent: Fri, 16 Nov 2012 15:04:31 +0100 > To: r-help@r-project.org > Subject: [R] Deleting rows with sp

Re: [R] Deleting rows with special character

2012-11-16 Thread Peter Kupfer
Hey Sara, first: Thanks for the fast reply! I checked the apply function and I found my error. For sure: I forgot to send an sample data. After sending the mail I recognized it. Sorry about this! Once again: Thanks for the fast reply and your help. Best Peter Am 16.11.2012 um 15:26 schrieb S

Re: [R] Deleting rows with special character

2012-11-16 Thread Sarah Goslee
Hi Peter, On Fri, Nov 16, 2012 at 9:04 AM, Peter Kupfer wrote: > Dear all, > maybe a simple problem but I found no solution for my problem. > I have a matrix Y with 23 000 rows and 220 colums. The entries are "A", "B" > or "C". A reproducible example with sample data is helpful. > I want to ex

[R] Deleting rows with special character

2012-11-16 Thread Peter Kupfer
Dear all, maybe a simple problem but I found no solution for my problem. I have a matrix Y with 23 000 rows and 220 colums. The entries are "A", "B" or "C". I want to extract all rows (as a matrix ) of the matrix Y where all entries of a row are (for example) "A". Is there any solution? I tried t