Re: [R] Replace column values in R conditional on values from different column

2012-10-13 Thread GradStudentDD
Thank you so much!!! This is exactly what I needed!! Have a wonderful rest of the weekend!! -- View this message in context: http://r.789695.n4.nabble.com/Replace-column-values-in-R-conditional-on-values-from-different-column-tp4646087p4646091.html Sent from the R help mailing list archive at N

[R] Replace column values in R conditional on values from different column

2012-10-13 Thread GradStudentDD
Dear List, I am working on a stats project and have been stumped by the issue of replacing values in a column conditional on values from a different column. I searched the forum and google in general, and was able to put some code together, but it's not working the way it's supposed to... I apprec

[R] Keep rows in a dataset if one value in a column is duplicated

2012-09-27 Thread GradStudentDD
Hi, I have a data set of observations by either one person or a pair of people. I want to only keep the pair observations, and was using the code below until it gave me the error " $ operator is invalid for atomic vectors". I am just beginning to learn R, so I apologize if the code is really rough