Skip to content

Help with "Cast" Function

4 messages · Burhan ul haq, Carl Witthoft, David Winsemius

#
I see your desired output has rather fewer data than the input data frame.  
Instead of making us pore over a bunch of numbers, can you explain exactly
what filtering you wish to do to get the specific subset 
of {male/female} {alcohol/caffeine} you're trying to get?



BHM wrote

            
--
View this message in context: http://r.789695.n4.nabble.com/Help-with-Cast-Function-tp4681381p4681384.html
Sent from the R help mailing list archive at Nabble.com.
#
On Nov 29, 2013, at 9:42 AM, Burhan ul haq wrote:

            
# this is base::reshape

reshape(df.1, idvar=1:2, sep="_", direction="long", varying=names(df.1)[3:8])
David Winsemius
Alameda, CA, USA