[R] How do I ensure that the polygon in spatstat::owin(poly=) does not have “negative area”

2013-09-18 Thread Jeff Marcus
I am a new user of the R spatstat package and am having problems creating a polygonal observation window with owin(). Code follows: library("maps") library ("sp")` library("spatstat") mass.map <- map("state", "massachusetts:main", fill=T) # This returns a data frame includding x and y components t

[R] How do I ensure that the polygon in spatstat::owin(poly=) does not have “negative area”

2013-09-18 Thread Jeff Marcus
I am a new user of the R spatstat package and am having problems creating a polygonal observation window with owin(). Code follows: library("maps") library ("sp")` library("spatstat") mass.map <- map("state", "massachusetts:main", fill=T) # This returns a data frame includding x and y components t

[R] Shortcut to refer to an attached dataframe?

2007-11-07 Thread Jeff Marcus
When I attach data frames I often want to be able to refer to the whole data frame rather then one of its components. For example: attach (my.data.frame) summary(my.data.frame) That's fine but often the frame has a very long name so I'd prefer some shorthand way of referring to it by its p