Oh, you will need to install the library before you call it:
install.packages("shapefiles")
from within R-Brian On May 13, 3:41 pm, Brian P <[email protected]> wrote: > R is very easy to get running--go tohttp://www.r-project.org/and get > the binary for your OS. Just open up Rgui or type rterm at the command > prompt. > > You'll need to look at the examples to get that library working for > you. R has some strange syntax compared to other scripting languages. > > The first command in your R script would be: > library(shapefiles) > > That would load the library for you. Some R peculiarities: indexing > starts at 1 instead of 0, and the following will assign the value 1 to > the object a > a <- 1 > > You can also use > a = 1 > > To get help type help.start() or to get help on a particular command > type ?command > > Hope that is helpful! > > -Brian > > On May 9, 10:51 pm, thomfriedel <[email protected]> wrote: > > > Can I use this to preprocesses my Shapefiles or KML files on a Linux > > system? Because it is javascript it does not look like it would do > > that. > > > I found this wirtten in a language called R, but it was not clear if > > source was available, or how much work it would be to get R running. > > >http://rss.acs.unt.edu/Rdoc/library/shapefiles/html/shapefiles.html > > > tom > > > On May 9, 9:56 am, bratliff <[email protected]> wrote: > > > > You may find > > > > www.polyarc.us/packer.js > > > > www.polyarc.us/pack > > > > useful for both point reduction & encoding. It is similar to the > > > Douglas-Peucker algorithm with several optimizations discussed > > > recently in other threads. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
