Re: [R] Simple Missing cases Function

2011-04-19 Thread Tim Elwell-Sutton
Thanks Tyler This function has some useful features Tim From: Tyler Rinker [mailto:tyler_rin...@hotmail.com] Sent: Tuesday, April 19, 2011 3:52 PM To: tesutton; r-help@r-project.org Subject: RE: [R] Simple Missing cases Function I use the following code/function which gives me some

Re: [R] Simple Missing cases Function

2011-04-19 Thread Tim Elwell-Sutton
Dear Petr Thanks so much. That is a LOT more efficient. Tim -Original Message- From: Petr PIKAL [mailto:petr.pi...@precheza.cz] Sent: Tuesday, April 19, 2011 3:37 PM To: tesutton Cc: r-help@r-project.org Subject: Odp: [R] Simple Missing cases Function Hi Hi try colSums(is.na(data.m))

Re: [R] Simple Missing cases Function

2011-04-19 Thread Tyler Rinker
I use the following code/function which gives me some quick descriptives about each variable (ie. n of missing values, % missing, case #'s missing, etc.): Fairly quick, maybe not pretty but effective on either single variables or entire data sets. NAhunter<-function(dataset) { find.NA<-functio

Re: [R] Simple Missing cases Function

2011-04-19 Thread Philipp Pagel
On Tue, Apr 19, 2011 at 03:29:08PM +0800, Tim Elwell-Sutton wrote: > Dear all > > > > I have written a function to perform a very simple but useful task which I > do regularly. It is designed to show how many values are missing from each > variable in a data.frame. In its current form it works

Re: [R] Simple Missing cases Function

2011-04-19 Thread Philipp Pagel
On Tue, Apr 19, 2011 at 03:29:08PM +0800, Tim Elwell-Sutton wrote: > Dear all > > > > I have written a function to perform a very simple but useful task which I > do regularly. It is designed to show how many values are missing from each > variable in a data.frame. In its current form it works