Perhaps something involving:
sapply(dataFrame, function(z) length(unique(z)))
Pat
On 17/05/2014 17:31, a...@dpi.inpe.br wrote:
Hello everybody!
I have a data frame with discrete and continuous variables something
like this:
011.462707165309.0171912.57041000.
101.552373295559.0171809.01701000.
011.195954445809.0171750.1000.
220.964678766059.0171707.10681000.
101.469273923250.559.0170750.
201.652678853500.707.1068750.
Discrete variables should be specified as factor as.factor() and
continuos variables as numeric as.numeric().
The problem is:
The users that will enter with the variables. Is it possible identify
which input variable are continuous or discrete?
Thank guys!
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Patrick Burns
pbu...@pburns.seanet.com
twitter: @burnsstat @portfolioprobe
http://www.portfolioprobe.com/blog
http://www.burns-stat.com
(home of:
'Impatient R'
'The R Inferno'
'Tao Te Programming')
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.