similar to: removing NA from a data frame

Displaying 20 results from an estimated 100 matches similar to: "removing NA from a data frame"

2012 Oct 23
10
How to pick colums from a ragged array?
I have a large dataset (~1 million rows) of three variables: ID (patient's name), DATE (of appointment) and DIAGNOSIS (given on that date). Patients may have been assigned more than one diagnosis at any one appointment - leading to two rows, same ID and DATE but different DIAGNOSIS. The diagnoses may change between appointments. I want to subset the data in two ways: - define groups
2006 Nov 24
2
Diebold Mariano Test
Dear List Has anyone used R to distnguish between alternative forecasting models? In particular is the Diebold Mariano test available for use within R. Any assistance would be greatly appreciated. Graham Leask Lecturer in Strategy Economics & Strategy Group Aston University Aston Triangle Birmingham B4 7ET Tel: 0121 204 3150 E Mail: g.leask at aston.ac.uk
2007 Feb 09
2
RE gap statistic in cluster analysis
Has anyone implemented Tibrishani's gap statistic in R or S plus? If so I would greatly appreciate the relevant script file. Any help will be much appreciated Kind regards Dr Graham Leask Economics and Strategy Group Aston Business School Aston University Aston Triangle Birmingham B4 7ET Tel: Direct line 0121 204 3150 email g.leask@aston.ac.uk [[alternative HTML version deleted]]
2010 May 16
1
MGE-UTALK regression since nut-server-2.2.2
Hi all ! I have communication issues between my station and my old Pulsar EX10 UPS, (U-Talk) connected by RS232, when using v2.4.1 of nut-server. I tried to come back to version 2.2.2 and then, communication start and is operational. Maybe it's linked to bug 498655, but i haven't seen any answer ? http://www.mail-archive.com/debian-bugs-dist at lists.debian.org/msg566711.html Here are
2003 May 23
1
Fw: write.table only writes the first 256 variables/columns
Thanks. I was "believing" an Excel import of the file - as you say, a re-import into R still has 333 columns. I shall look elsewhere for the cause of the mysterious truncation. Stuart > ----- Original Message ----- > From: "Thomas Lumley" <tlumley at u.washington.edu> > To: "Stuart Leask" <stuart.leask at nottingham.ac.uk> > Cc:
2002 Jan 18
1
RE: z-scores for different factor levels
Hi Stuart, I often use this small function standardize <- function(x) ( x - mean(x, na.rm=T) ) / sqrt(var(x, na.rm=T)) to standardize variables. You should be able to use this to do what you want by splitting the data frame into sections based on the factor level, using standardize() to create a new variable in each section, then paste the data frame back together. Something like: #
2006 Oct 21
1
Box M test
Dear List I am looking for a script that will calculate the Box M test to test the homogeneity of the variance/covariance matrix between two matrices. If anyone could send me the script I would appreciate it. I am aware of the scepticism about this test, where due to extreme sensitivity a p value of 0.01 is recommended. Despite this however Box's M test is the established
2007 Feb 17
1
help with cluster stopping rules
Is there a function available in R that implements Mojena's Upper Tail Rule or that draws a Mojena plot? I would also like to find a function that implements Duda and Hart's stopping rule. Finally with function cophenet how can I achieve a straightforward Cophenet correlation coefficient (i.e. one number for example 0.876) that gives the agreement between the structure of the
2002 Jan 08
3
Finding functions in uninstalled libraries
(Many thanks to David Barron & Jonathan Baron for pointing me to 'recode' in the 'car' package). I think I've been told this before, but how do I search for a function/keyword in libraries I don't yet have installed? (ie. on the CRAN site I tried the search engines with "recode" etc., but didn't pick up the car package this way) Stuart Dr Stuart Leask
2013 Apr 06
2
Replace missing value within group with non-missing value
Dear List members I have a large dataset organised in choice groups see sample below +-------------------------------------------------------------------------------------------------+ | dn obs choice acid br date cdate situat~n mth year set |
2009 Dec 24
3
aggregate binary response data
Dear list I have a response variable coded 0/1 i.e. a binary response. There are 20,000 individual responses that I would like to aggregate into numbers of each category (i.e. 0/1) by group called dn (350 different groups) and by month mth (there are several hundred responses per month. What is the simplest way to perform this operation in R?
2012 Jul 18
3
'symbols' not plotting correct circle radii
Hi there. I have been plotting some circles using 'symbols', with radii representing my data, but the radii looked incorrect. It seems to happen with a single circle too: Symbols ( 0, 0, circles = 40, xlim = c(-40, 40), ylim= c(-40, 40)) If I put a ruler up to my monitor (technology!) to compare the radius with the axes, the circle isn't radius 40; it is closer to 15... I
2002 Nov 27
1
R on the Zaurus
Hello All, I have a working port of R on my SL5500. I've not tested the X windowing support yet, but was more concerned about the accuracy of the fp emulation. The following is the result of the test which Stuart Leask recommended I should try: Mandrake 8.2 > x<-NA > is.na(x) [1] TRUE > x+1 [1] NA > 2*x [1] NA Zaurus OZ3 > x<-NA > is.na(x) [1] TRUE > x+1 [1] 1
2010 Apr 30
2
RBloomberg for 2.11 ?
Dear R Users, Is there a version of the Windows binary for RBloomberg that works with R 2.11 ? Thanks in advance, Tolga This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at
2001 Sep 18
4
help in a separate window under linux
Hi there. R v1.3.0, Slackware linux 7.1 or Windows 98SE, PII 266, 64Mb RAM. I notice that under windows, R puts help info (ie. the response to '?<function>') into a new window, whereas under linux, it puts it into the main console window. I find the former much more helpful when checking a function's syntax. Is there a simple way of configuring R under linux to put its help
2013 Apr 07
3
mlogit error
Dear List I am trying to fit a multinomial model using the mlogit package. Attempting to load the data into mlogit presents the following error. MLOG<-mlogit.data(Mult3,shape="long",choice="CHOICE",alt.var="mode.ids",indivs = "set3",chid.var = "obs") Error in `row.names<-.data.frame`(`*tmp*`, value = c("1.1", "1.2",
2002 Feb 21
2
Re: Factor analysis of categorical or mixed categorical/continuousdata in
I am looking to fit one or more latent categorical variables to data that is a mixture of categorical and continuous variables. Factor analysis would work for continuous data, latent class analysis for categorical data. I understand that in a package such as MPlus I could perform a single analysis of both data types. Are there similar routines available in R? Stuart -----Original Message-----
2002 Feb 21
1
Factor analysis of categorical or mixed categorical/continuous data in
Are there any suitable routines that perform factor analysis of categorical or mixed categorical/continuous data in R? Stuart Dr Stuart Leask MA MB BChir (Cantab) MRCPsych Clinical Lecturer in Psychiatry, University of Nottingham Dept Psychiatry Duncan Macmillan House, Porchester Road, Nottingham. NG3 6AA. UK tel. 00 44 115 969 1300 xtn 40784 fax 0115 955 5352
2001 Sep 21
4
How to change the levels of a variable???
Hi, I have a simple question. I have a variable with 3 levels. Variable A A A A A A B B B B B B C C C C C C I need to make a new vector renaming de levels B and C for D. NewVariable A A A A A A D D D D D D D D D D D D I dont find how to make it in manuals or in this list. Can anyone help-me??? Thank you Ronaldo -- Agnes' Law: Almost everything in life is easier to get into than out of.
2001 Mar 10
1
Bug in qchisq?
Hello developers and users: My system fails (the computer freezes) when I use the ncp parameter, with the lower.tail=FALSE option in the qchisq function. qchisq(0.025,31,ncp=1,lower.tail=FALSE) Thank you very much for your help. Kenneth Cabrera Universidad Nacional de Colombia ICNE Sede Medellin krcabrer at perseus.unalmed.edu.co PS I am using: $platform "i386-pc-mingw32"