Hi,

I have a matrix or data.frame (df). When I would like to check if a column
named "x" exists, it becomes my habit to do the following:

if (length(which(colnames(df)=="x"))>0)

Is there any smarter way to do this? Thank you.

adschai

	[[alternative HTML version deleted]]


