Hello list
I would like to know how can i detect dataframe columns that have as
unique values elements of a list.
For example, at a given dataframe to look for columns that unique values
are elements of a list like this one
dataframe<-data.frame(
x = c("yes, "1, "no, "no),
y = c("black, "red, "NA, "white),
z= c(T,F,T,T),
J= c(2,7,8,9))
Library(DescTools)
list<-GetAllSubsets(c(NA,0,1,2,"yes","y","no"),min.n = 2, max.n = 5)
......and to obtain the following vector..
TRUE,FALSE, FALSE, FALSE
Best regards
Maicel Monzon
--
Nunca digas nunca, di mejor: gracias, permiso, disculpe.
Este mensaje le ha llegado mediante el servicio de correo electronico que
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
Nacional de Salud. La persona que envia este correo asume el compromiso de usar
el servicio a tales fines y cumplir con las regulaciones establecidas
Infomed: http://www.sld.cu/
______________________________________________
[email protected] 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.