Hi, I don't want to cheat for Assignment Week 1 I calculated the answers using microsoft excel. Please help me with extracting data, counting missing values in R software will really be grateful. Don't want to be a liar. -- Dorcas Nduati PHPT Dept. Room 111 UoN Office:0202453621 Ext 27107 Skype:dorcas.waithira.nduati [[alternative HTML version deleted]]
show us some of your effort? what have you tried? did u went through the video lectures in the site? On Wed, Jan 15, 2014 at 3:11 AM, Dorcas Nduati <dnduati@gmail.com> wrote:> Hi, > > I don't want to cheat for Assignment Week 1 I calculated the answers using > microsoft excel. > > Please help me with extracting data, counting missing values in R software > will really be grateful. Don't want to be a liar. > > -- > Dorcas Nduati > PHPT Dept. > Room 111 > UoN > > Office:0202453621 Ext 27107 > Skype:dorcas.waithira.nduati > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > 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. >[[alternative HTML version deleted]]
Hi,May be this helps: ?set.seed(26) ?dat1 <- data.frame(Col1= sample(c(NA,1:10),25,replace=TRUE),Col2=rnorm(25)) subset(dat1,!is.na(Col1)) #subset based on non-missing values of first column sum(is.na(dat1[,1]))#count missing values. A.K. On Wednesday, January 15, 2014 2:14 AM, Dorcas Nduati <dnduati at gmail.com> wrote: Hi, I don't want to cheat for Assignment Week 1 I calculated the answers using microsoft excel. Please help me with extracting data, counting missing values in R software will really be grateful. Don't want to be a liar. -- Dorcas Nduati PHPT Dept. Room 111 UoN Office:0202453621 Ext 27107 Skype:dorcas.waithira.nduati ??? [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list 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.