Hi,
Try ?unique()
You haven't provided reproducible data or information about the package.  So, 
this may or may not work.

dat1<- data.frame(idvar=c(rep(1,2),2,4),col2=c(7,7,8,9))
 dat1
#  idvar col2
#1     1    7
#2     1    7
#3     2    8
#4     4    9
 unique(dat1)
#  idvar col2
#1     1    7
#3     2    8
#4     4    9
A.K.




I got the following message when trying to use Google motion charts. 

Error in gvisCheckMotionChartData(data, my.options) : 
  The data must have rows with unique combinations of idvar and timevar. 
Your data has 16264 rows, but idvar and timevar only define 16262 unique rows. 
> 

How do I find and remove the two duplicate rows? 

Thanks, 
Johnny

______________________________________________
R-help@r-project.org 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.

Reply via email to