Re: [R] Handling missing data

2009-09-23 Thread Dr. S. B. Nguah
Reproducible code.??? premmad wrote: I have to remove missing data both in character and numeric datatype.I tried using NA condition but it is not working ,please help me to solve this. - Blay S KATH Kumasi, Ghana. -- View this message in context:

Re: [R] R startup and shutdown question

2009-01-23 Thread Dr. S. B. Nguah
Hi, ?.First ?.Last Sammy Philip James Smith wrote: Hi R-Community: Here is what I want to do: Every time I start R I want R to: 1. remove(list=ls()), and 2. source another file automatically. Then, when I shutdown R, I want R to: 1. remove(list=ls())

Re: [R] Dot plot - equivalent of MINITAB

2008-09-26 Thread Dr. S. B. Nguah
Paul, Have you tried the dotplot() function in the package epicalc? I think it does what you want. Sammy kerfuffle wrote: hi folks, Bit of a newbie, but I've spent a fair bit of time looking for an answer on this, with no joy. Can anyone help me? Dataset: A single column of

Re: [R] how to important a date file into R

2008-06-08 Thread Dr. S. B. Nguah
Hi, ?read.fwf Try, read.fwf(filename.ext,width=c(3,rep(1,298)),header=F) Blay yyan liu wrote: Hi: I have a data file in the following format. The first three digits stand for the ID of a respondent such as 402, 403. Different respondents may have the same ID. Followed the ID are

Re: [R] Is variable in one vector part of variable in another

2008-05-31 Thread Dr. S. B. Nguah
darthgervais wrote: I have 2 vectors x z x has 10 variables in it z has 75 variable in it I need to check all 75 variables in z and see if they are present in the vector x. So far this is what I have: for (i in 0:75){ if (z[i]==x) (w=w+1) } Thanks in advance w Try: