Actually
sapply(x %% 1, function(x) isTRUE(all.equal(x, 0)))
seems to be the way to go.
Uwe Ligges
On 14.08.2011 07:17, Ken wrote:
How about something like:
If(round(x)!=x){zap} not exactly working code but might help
Ken
On Aug 13, 2554 BE, at 3:42 PM, Paul
A client came into our consulting center with some data that had been
damaged by somebody who opened it in MS Excel. The columns were
supposed to be integer valued, 0 through 5, but some of the values
were mysteriously damaged. There were scores like 1.18329322 and such
in there. Until he tracks
Hi Paul,
What about using:
x[x != as.integer(x)] - NA
I cannot think of a situation off hand where this would fail to turn
every non integer to missing.
I wonder if there is really a point to this? Can the client proceed
with data analysis with any degree of confidence when an unknown
How about something like:
If(round(x)!=x){zap} not exactly working code but might help
Ken
On Aug 13, 2554 BE, at 3:42 PM, Paul Johnson pauljoh...@gmail.com wrote:
A client came into our consulting center with some data that had been
damaged by somebody who opened it in MS Excel. The
4 matches
Mail list logo