From: Paul Rathouz <prathouz_at_health.bsd.uchicago.edu>

Date: Fri 08 Apr 2005 - 11:47:06 EST

*> x <- c(1,2,3,3,NA)
*

*> is.double(x)
*

**[1] TRUE
**

*> table(x,exclude=NA)
*

x

1 2 3

1 1 2

*> table(x,exclude=NaN)
*

x

system powerpc, darwin6.8

status

major 2

minor 0.1

year 2004

month 11

day 15

language R

Paul Rathouz, Assoc. Professor ph 773-834-1970 Dept. of Health Studies, Rm. W-264 fax 773-702-1979

Chicago, IL 60637

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Apr 08 11:55:48 2005

Date: Fri 08 Apr 2005 - 11:47:06 EST

x

1 2 3

1 1 2

x

1 2 3 <NA>

1 1 2 1

*> table(x,exclude=NULL)
*

x

1 2 3 <NA>

1 1 2 1

*>
*

> x <- as.integer(x)

*> x
*

[1] 1 2 3 3 NA

*> is.na(x)
*

**[1] FALSE FALSE FALSE FALSE TRUE
**

*> is.integer(x)
*

**[1] TRUE
**

*> table(x,exclude=NA)
*

x

1 2 3

1 1 2

*> table(x,exclude=NaN)
*

x

1 2 3

1 1 2

*> table(x,exclude=NULL)
*

x

1 2 3 <NA>

1 1 2 1

*>
**> R.version
*

_

platform powerpc-apple-darwin6.8

arch powerpc os darwin6.8

system powerpc, darwin6.8

status

major 2

minor 0.1

year 2004

month 11

day 15

language R

Paul Rathouz, Assoc. Professor ph 773-834-1970 Dept. of Health Studies, Rm. W-264 fax 773-702-1979

University of Chicago prathouz@health.bsd.uchicago.edu5841 S. Maryland Ave. MC 2007

Chicago, IL 60637

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Apr 08 11:55:48 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:31:05 EST
*