[R] Decrete value check in a matrix

Rantony antony.akkara at ge.com
Mon Jul 2 12:04:48 CEST 2012


Hi All,

Here i have an Dataframe (or) Matrix like this,

MyMatrix <-
ABC          XYZ
------        -------
1              2.5
3.4           4
5              6
5.6          6.7

Here i need to check each column value having decrete value or not ?.
If that particular coulmn-value having decrete value, then the result should
be
TRUE/FALSE respectively in the result column.
Finally, i need to get the result as  Dataframe (or) Matrix form like this

ABC          XYZ      ABC_RESULT               XYZ_RESULT
------        -------     --------------------            
--------------------
1              2.5                 TRUE                       FALSE
3.4           4                    FALSE                     TRUE
5              6                    TRUE                        TRUE
5.6          6.7                  FALSE                     FALSE

- Can any one help me fast ? 

Antony.

--
View this message in context: http://r.789695.n4.nabble.com/Decrete-value-check-in-a-matrix-tp4635090.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list