[R] cutting out numbers from vectors

2008-07-31 Thread calundergrad
i have a vector with values similar to the below text [1] 001-010-001-0 I want to get rid of all leading zeroes. for example i want to change the values of the vector so that [1] 001-010-001-0 becomes [1] 1-010-001-0. Another example [1]082-232-232-1 becomes [1] 82-232-232-1 -- View this mes

[R] cutting out numbers from vectors

2008-06-20 Thread calundergrad
i have a vector with a string of number e.g [1] 0113001 001130011000 001130012000 001130013000 001130016000 [6] 001130018000 i want a vector with the same numbers except with the last three digits of every factor cut off. e.g [1] 01130010 001130011 001130012 001130013 001130016 [6] 0011

[R] combining two data frames (different question)

2008-06-17 Thread calundergrad
i have two data frames. One data frame contains one column with the identificication number of a geographic place. The other columns are just some data about the corresponding geographic place. The other data frame also contains one column with the id number of a geographic place. the other co

[R] combining two data frames

2008-06-17 Thread calundergrad
i know this is a very simple question but i have two data frames (one of which is a continuation of the first data frame) and i was just wondering how do you combine those? any simple solution would be helpful. thank you very much -- View this message in context: http://www.nabble.com/combinin