Re: [R] why there is no quarters?

2013-12-16 Thread Pancho Mulongeni
this with as.Date and as.character. Pancho Mulongeni Research Assistant PharmAccess Foundation 1 Fouché Street Windhoek West Windhoek Namibia   Tel:   +264 61 419 000 Fax:  +264 61 419 001/2 Mob: +264 81 4456 286 __ R-help@r-project.org mailing list https

[R] R reference group in Cape Town South Africa

2013-10-16 Thread Pancho Mulongeni
Pancho Mulongeni Research Assistant PharmAccess Foundation 1 Fouché Street Windhoek West Windhoek Namibia   Tel:   +264 61 419 000 Fax:  +264 61 419 001/2 Mob: +264 81 4456 286 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] converting a summary table to survey database form

2013-08-23 Thread Pancho Mulongeni
Thank you! -Original Message- From: arun [mailto:smartpink...@yahoo.com] Sent: 22 August 2013 17:17 To: Pancho Mulongeni Cc: R help Subject: Re: [R] converting a summary table to survey database form Hi, May be this helps: dat1- structure(...  dat1$ID- row.names(dat1) library(reshape2

[R] converting a summary table to survey database form

2013-08-22 Thread Pancho Mulongeni
attempt below does not work: r-dim(condomData)[1] scoreS-c() for (i in 1:r) { score-as.numeric(condomData[r,]) scoreS-c(scoreS,s) } It just gives me the last row of condomData copied 10 times. Any help? Thank you, I really want to know if all condoms are equal. Pancho Mulongeni Research Assistant

Re: [R] Hungarian R User's Group (Gergely Dar?czi)

2013-08-13 Thread Pancho Mulongeni
Hi Gergely! This sounds so exciting - so R is turning 20 years old? How did you set up your R users' group? What are the best practices in going about to set one up? I would be keen on establishing one here in Windhoek, Namibia. Pancho Mulongeni Research Assistant PharmAccess Foundation 1

[R] Upgrading to R and keeping packages

2013-08-08 Thread Pancho Mulongeni
update the packages I want rather than the whole folder and see if this works, Pancho Mulongeni Research Assistant PharmAccess Foundation 1 Fouché Street Windhoek West Windhoek Namibia   Tel:   +264 61 419 000 Fax:  +264 61 419 001/2 Mob: +264 81 4456 286

[R] Splitting coordinates into two

2013-07-08 Thread Pancho Mulongeni
, -22.832516,17.183304, -22.934365,14.521008, -22.947328,14.508991, -24.45,15.801086, -24.621739,17.959728, -25.460983,19.438198, -26.567955,18.134651, -26.645292,15.153944, -27.915553,17.490921, -28.017742,18.745594 ), class = factor) Pancho Mulongeni Research Assistant PharmAccess Foundation 1 Fouché

Re: [R] Splitting coordinates into two

2013-07-08 Thread Pancho Mulongeni
Thank you, So my mistake was my data was a factor and not character,for strsplit Thanks so much -Original Message- From: Rui Barradas [mailto:ruipbarra...@sapo.pt] Sent: 08 July 2013 15:55 To: Pancho Mulongeni Cc: r-help@r-project.org Subject: Re: [R] Splitting coordinates into two

[R] Unique in discerning missing values NA

2013-07-05 Thread Pancho Mulongeni
), but this did not work. Thanks Pancho Mulongeni Research Assistant PharmAccess Foundation 1 Fouché Street Windhoek West Windhoek Namibia   Tel:   +264 61 419 000 Fax:  +264 61 419 001/2 Mob: +264 81 4456 286 __ R-help@r-project.org mailing list https

Re: [R] Unique in discerning missing values NA

2013-07-05 Thread Pancho Mulongeni
Yes thanks, this is what I ended up doing, but I though there would be a 'internal' way to disregard NAs in unique. Thanks for the tip on dput -Original Message- From: Rui Barradas [mailto:ruipbarra...@sapo.pt] Sent: 05 July 2013 11:39 To: Pancho Mulongeni Cc: r-help@r-project.org

[R] Problem with DateVisit-gives wrong year?

2013-04-17 Thread Pancho Mulongeni
the word 'bug' Thanks Pancho Mulongeni Research Assistant PharmAccess Foundation 1 Fouché Street Windhoek West Windhoek Namibia   Tel:   +264 61 419 000 Fax:  +264 61 419 001/2 Mob: +264 81 4456 286 __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Problem with DateVisit-gives wrong year?

2013-04-17 Thread Pancho Mulongeni
Thank you, I see this was due to me using %y instead of %Y, See ?strptime -Original Message- From: arun [mailto:smartpink...@yahoo.com] Sent: 17 April 2013 12:31 To: Pancho Mulongeni Cc: R help Subject: Re: [R] Problem with DateVisit-gives wrong year? HI, test.date- rep(c(14/05/2012,01

[R] question about attaching data

2013-03-28 Thread Pancho Mulongeni
Pancho Mulongeni Research Assistant PharmAccess Foundation 1 Fouché Street Windhoek West Windhoek Namibia   Tel:   +264 61 419 000 Fax:  +264 61 419 001/2 Mob: +264 81 4456 286 __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] Commercial or not?

2013-02-21 Thread Pancho Mulongeni
Hi All, Let's say someone uses an R package (prefer to not disclose which) that comes with two different distributions,the commercial and non-commercial license. Now the non commercial license has conditions,bit it never runs out. So if this person knows they should be using the commercial

[R] RESOLVED: Using table to get frequencies of several factors at once

2013-01-16 Thread Pancho Mulongeni
Thanks, I hereby declare this thread as resolved. -Original Message- From: S Ellison [mailto:s.elli...@lgcgroup.com] Sent: Wednesday, January 16, 2013 4:27 PM To: Pancho Mulongeni; R help Subject: RE: Using table to get frequencies of several factors at once You could use a variant

[R] Removing an attached object

2013-01-15 Thread Pancho Mulongeni
it not disappear from the search path? Thanks Pancho Mulongeni Research Assistant PharmAccess Foundation 1 Fouché Street Windhoek West Windhoek Namibia   Tel:   +264 61 419 000 Fax:  +264 61 419 001/2 Mob: +264 81 4456 286 __ R-help@r-project.org mailing list

Re: [R] Removing an attached object

2013-01-15 Thread Pancho Mulongeni
Thanks, that makes it clear -Original Message- From: Pascal Oettli [mailto:kri...@ymail.com] Sent: Tuesday, January 15, 2013 1:07 PM To: Pancho Mulongeni Cc: R help Subject: Re: [R] Removing an attached object Hi, Please read the following: http://stackoverflow.com/questions/3536036

Re: [R] Using table to get frequencies of several factors at once

2013-01-14 Thread Pancho Mulongeni
Yes thank you, that worked. -Original Message- From: John Kane [mailto:jrkrid...@inbox.com] Sent: Friday, January 11, 2013 4:23 PM To: Pancho Mulongeni; R help Subject: RE: [R] Using table to get frequencies of several factors at once Does something like this do what you want

[R] Using table to get frequencies of several factors at once

2013-01-11 Thread Pancho Mulongeni
, I can just ignore it. So is there are better way to do this? Is there a way to use the so called tapply function? I struggle to understand the help doc for this.function. Pancho Mulongeni Research Assistant PharmAccess Foundation 1 Fouché Street Windhoek West Windhoek Namibia   Tel:   +264 61

[R] Recode function car package erases previous values

2012-10-24 Thread Pancho Mulongeni
1). Background. The variable pharm assess where you used the pharmacy to get your contraception. Pancho Mulongeni Research Assistant PharmAccess Foundation 1 Fouché Street Windhoek West Windhoek Namibia   Tel:   +264 61 419 000 Fax:  +264 61 419 001/2 Mob: +264 81 4456 286

Re: [R] Recode function car package erases previous values

2012-10-24 Thread Pancho Mulongeni
-Original Message- From: arun [mailto:smartpink...@yahoo.com] Sent: Wednesday, October 24, 2012 3:31 PM To: Pancho Mulongeni Cc: R help Subject: Re: [R] Recode function car package erases previous values Hi, May be this helps: set.seed(1) dat1-data.frame(B20_C1=c(NA,sample(0:1,4

Re: [R] Recode function car package erases previous values

2012-10-24 Thread Pancho Mulongeni
Hi Arun, I also used to get that error, but what class is your nr.B20C, mine is not a factor, it is numeric and perhaps that's why it works -Original Message- From: arun [mailto:smartpink...@yahoo.com] Sent: Wednesday, October 24, 2012 4:35 PM To: Pancho Mulongeni Cc: R help Subject

Re: [R] Setting all rows of a certain level to NA in a factor

2012-10-22 Thread Pancho Mulongeni
Perfect, thanks -Original Message- From: Rui Barradas [mailto:ruipbarra...@sapo.pt] Sent: Wednesday, October 17, 2012 9:49 PM To: Pancho Mulongeni Cc: r-help@r-project.org Subject: Re: [R] Setting all rows of a certain level to NA in a factor Hello, Try the following. b - factor

[R] Setting all rows of a certain level to NA in a factor

2012-10-17 Thread Pancho Mulongeni
, 3L, 1L, 1L, 1L, 1L, 3L, 3L, 1L, 3L, 4L, 1L, 1L, 4L, 3L, 1L, 3L, 1L, 1L, 3L, 1L, 1L, 4L, 1L, 1L, 1L, 4L, 3L, 1L, 3L), .Label = c( , 5.6, No , Yes), class = factor) Pancho Mulongeni Research Assistant PharmAccess Foundation 1 Fouchè Street Windhoek West Windhoek Namibia   Tel:   +264 61 419 000