Re: [R] Using Sub

2012-06-19 Thread Phil Hurvitz
Possibly overkill, I use a Windows batch file that calls a perl script. Both the bat and pl files need to be in the executable path. Open a command prompt, type `pwd ' and then drag the file or folder from the Windows Explorer to the cmd. The script will return the file with backslashes convert

[R] Round down to earliest hour or half hour

2012-06-08 Thread Phil Hurvitz
I wanted to round rather than truncate timestamps # create a data set to work with s <- 30 * rnorm(10, 1, 0.1) gps.timestamp <- Sys.time() + s*1:10 gps.timestamp <- c(round(gps.timestamp[1], "min"), gps.timestamp, as.POSIXct("2012-06-08 17:32:59"), as.POSIXct("2012-06-08 17:32:30")) f <- funct

[R] RODBC fails to read ArcGIS mdb shape table at 2.9.1; works at

2009-08-03 Thread Phil Hurvitz
ere: http://gis.washington.edu/phurvitz/R/rodbc_problem/ -P. ** Phil Hurvitz, MFR | PhD Student, Urban Planning | CBE 1107 NE 45th Street, Suite 535 | Box 354802 University of Washington, Seattle, Washington 98195-4802,