for (dup in duplicates) {
tt=length(mydata$values.with.duplicates[which(mydata$values.with.duplicates==dup)])
mydata$times.duplicated[which(mydata$values.with.duplicates==dup)]=tt
}
Keith, Sally
unread,
Sep 27, 2012, 1:48:40 AM9/27/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tropi...@googlegroups.com
table(mydata$columnname)
--
An R group for questions, tips and tricks relevant to spatial ecology and climate change.
All R questions welcome.
---
You received this message because you are subscribed to the Google Groups "Tropical R" group.
To post to this group, send an email to tropi...@googlegroups.com.
To unsubscribe from this group, send email to tropical-r+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Lauren Hodgson
unread,
Sep 27, 2012, 2:00:27 AM9/27/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tropi...@googlegroups.com
hahaha, awesome! thanks so much.
as.data.frame(table(mydata$columnname)) allows me to merge this info
to the main data frame.