Hi,

I am trying to process some data frame with cast function to unwind the
stacked variables. I have no problem using cast when the values are all
numeric based on the following format:

cast(df,subject~v1+v2+v3....,value = "value",fun.aggregate = mean, fill =
"NA")

However, I am getting some trouble when the "value" variable has a mixture
of numeric and character.

I played around dropping off the fun.aggregate = mean option, but it use
the default: which is the length and not what I want.

I am wondering if there is anyway of doing this?

Many thanks,

-Jack

	[[alternative HTML version deleted]]

