Re: [R] Re moving unwanted double values in list

2009-04-29 Thread Jim Regetz
Hi Josh, Comments below. Josh Roll wrote: What you suggested works perfectly for the question i posed. Hoever, on further inspection by additional numbers cannot be thrown out and instead need to be added to the list somehow. I tried specifying the list dimensions but that causes proble

Re: [R] Re moving unwanted double values in list

2009-04-28 Thread Jim Regetz
PDXRugger wrote: I have a procedure that goes sorts out some numbers based on specidifed criteria and for some reason the list contains double values in some of the rows such as: TAZs <- [[84]] [1] 638 [[85]] [1] 643 [[86]] [1] 644 732 [[87]] [1] 651 801 i would like to check list TAZs for

Re: [R] replacing missing values in a dataframe with reference values.

2008-08-21 Thread Jim Regetz
Gary Collins wrote: Any thoughts on the following I'd be most grateful - I'm sure there is an easy and quick way to do this but I'm having a mental block this evening. Essentially, I'm trying to replace missing data in my dataset with reference values based on age and sex. So an example datas

Re: [R] converting coordinates from utm to longitude / latitude

2008-08-19 Thread Jim Regetz
Werner Wernersen wrote: It would be nicer to convert directly the entire shapefile object to long/lat coordinates but if that is not possible, I will convert the other points to UTM. Hence, I am playing around with rgdal. library(rgdal) SP <- SpatialPoints(cbind(32.29252, -0.3228500), proj4s