Re: [R] function for filtering and deleting vector entries

2012-03-01 Thread babyluck
Thank you very much!! Exactly how I wanted it :) -- View this message in context: http://r.789695.n4.nabble.com/function-for-filtering-and-deleting-vector-entries-tp4432410p4436303.html Sent from the R help mailing list archive at Nabble.com. __ R-help

Re: [R] function for filtering and deleting vector entries

2012-03-01 Thread babyluck
Thank you Rui, that helped a lot. The correct values show up when I'm using the following code. Now fun(Temp,v) returns a matrix, and Temp and v stay the same. But I'd like to use the reduced vectors in some calculations..can they be "extracted" in some way so that I have them separately a

[R] function for filtering and deleting vector entries

2012-02-29 Thread babyluck
Dear helpers I have two data sets saved as vectors (temperature and velocity). Now I need to "take out" a span of temperature and its corresponding velocity in the other vector. How can I achieve that? I tried to write a function,which takes a vector entry and then decides wether to delete the t