Could you please provide the sessionInfo()?
My guess is that some other loaded library is masking the summarize().
For example, if I load
library(Hmisc)
#The following object is masked from ‘package:plyr’:
#
# is.discrete, summarize
ddply(datNew,.(activity),summarize, max_dt=max(max_dt)) #
#Error in is.list(by) : 'by' is missing
ddply(datNew,.(activity),plyr::summarize,max_dt=max(max_dt))
# activity max_dt
#1 A 2013-03-28
#2 B 2013-03-28
#3 C 2013-03-28
A.K.
----- Original Message -----
From: "Mossadegh, Ramine N." <Ramine.M...@finra.org>
To: arun <smartp...@yahoo.com>
Cc:
Sent: Thursday, May 23, 2013 10:44 AM
Subject: RE: [R] Removing rows w/ smaller value from data frame
Thank but I get : Error in is.list(by) : 'by' is missing
When I tried ddply(datNew,.(activity),summarize, max_dt=max(max_dt))
A.K.
Hello,
data frame:
Confidentiality Notice: This email, including attachments, may include non-public, proprietary, confidential or legally privileged information. If you are not an intended recipient or an authorized agent of an intended recipient, you are hereby notified that any dissemination, distribution or copying of the information contained in or transmitted with this e-mail is unauthorized and strictly prohibited. If you have received this email in error, please notify the sender by replying to this message and permanently delete this e-mail, its attachments, and any copies of it immediately. You should not retain, copy or use this e-mail or any attachment for any purpose, nor disclose all or any part of the contents to any other person. Thank you