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

[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) l

[R] converting a summary table to survey database form

2013-08-22 Thread Pancho Mulongeni
7;Sheiks','Trojans','Unamed),10) and I would have my desired datafram for anova. But alas my 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

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 Foundat

[R] Upgrading to R and keeping packages

2013-08-08 Thread Pancho Mulongeni
ilable'. Where did I go wrong? I think I will just 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

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] Splitting coordinates into two

2013-07-08 Thread Pancho Mulongeni
.582733", "-22.084367,16.750031", "-22.182318,17.072754", "-22.447841,18.962746", "-22.576608,17.07859", "-22.649502,14.532166", "-22.832516,17.183304", "-22.934365,14.521008", "-22.947328,14.508991", "-24.4777

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-p

[R] Unique in discerning missing values NA

2013-07-05 Thread Pancho Mulongeni
is 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://stat.e

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

[R] Problem with DateVisit-gives wrong year?

2013-04-17 Thread Pancho Mulongeni
4" "2020-05-14" "2020-05-14" "2020-05-14" "2020-05-14" What am I doing wrong? I dare not say the word 'bug' Thanks Pancho Mulongeni Research Assistant PharmAccess Foundation 1 Fouché Street Windhoek West Windhoek Namibia   Tel:   +264 61 419 000 F

[R] question about attaching data

2013-03-28 Thread Pancho Mulongeni
I get the correct data, as the previous versions of dummy are 'masked from the search path'. What stops me from continuing this process ad infinitum? What's the use of detaching dummy using detach()? Thanks Pancho Mulongeni Research Assistant PharmAccess Foundation 1 Fouché S

[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 licen

[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 of

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

[R] Removing an attached object

2013-01-15 Thread Pancho Mulongeni
uot;Autoloads" "package:base" Also when I enter the names of factors in this dataframe, such as 'AGE', I get a list of data values. This is weird, why does it not disappear from the search path? Thanks Pancho Mulongeni Research Assistant PharmAccess Foundation 1

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? It

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

2013-01-11 Thread Pancho Mulongeni
the two columns, but that's ok, 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 W

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 Su

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:

[R] Recode function car package erases previous values

2012-10-24 Thread Pancho Mulongeni
This inconvenient as I would like to have ultimately the following table pharm No Yes no resp 716 7 6 (FROM nr.B20C where row has value 1). Background. The variable pharm assess where you used the pharmacy to get your contraception. Pancho Mulongeni Research

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 <- fac

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

2012-10-17 Thread Pancho Mulongeni
1L, 4L, 4L, 1L, 3L, 4L, 1L, 1L, 1L, 1L, 3L, 1L, 1L, 1L, 3L, 3L, 1L, 1L, 1L, 1L, 3L, 4L, 1L, 1L, 3L, 3L, 4L, 4L, 1L, 3L, 1L, 4L, 1L, 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"