Re: [R] Masking

2013-09-14 Thread Ista Zahn
Hi David, On Sat, Sep 14, 2013 at 5:49 PM, David Arnold wrote: > Hi, > > I'm a bit confused by masking. Thought I understood, but today makes me > wonder. > > x=0:9 > y=0:9 > sm=data.frame(x=4:8,y=9:13) > attach(sm) > x > detach(sm) > > The code produces this message: > >> attach(sm) > The follow

[R] Masking

2013-09-14 Thread David Arnold
Hi, I'm a bit confused by masking. Thought I understood, but today makes me wonder. x=0:9 y=0:9 sm=data.frame(x=4:8,y=9:13) attach(sm) x detach(sm) The code produces this message: > attach(sm) The following object is masked _by_ .GlobalEnv: x, y > x [1] 0 1 2 3 4 5 6 7 8 9 I guess I tho

Re: [R] Masking oceans using polypath

2013-08-11 Thread Paul Murrell
Hi The outline for France from that database is a little bit pesky because it consists of multiple segments that travel in different directions around the French border. Here is some (possibly jetlagged) code that puts the segments all in the same direction and produces a nicer result ... b

Re: [R] Masking oceans using polypath

2013-08-05 Thread Marc Girondot
I like very much the solution proposed by Paul Murrell to mask the ocean (in fact, all that is not the country displayed) in a plot. It works pretty well for Australia. However, when I try to apply the same code for France, it fails. I search for the reason but I can't find. Here is the code fo

Re: [R] Masking oceans using polypath

2013-07-17 Thread Louise Wilson
Many thanks, this works beautifully. Louise On Wed, Jul 17, 2013 at 7:42 AM, Paul Murrell wrote: > Hi > > There are a couple of problems: > > 1. > Your 'outline' is much bigger than it needs to be. For example, the > following produces just Australia ... > > outline <- map("worldHires", region

Re: [R] Masking oceans using polypath

2013-07-16 Thread Paul Murrell
Hi There are a couple of problems: 1. Your 'outline' is much bigger than it needs to be. For example, the following produces just Australia ... outline <- map("worldHires", regions="Australia", exact=TRUE, plot=FALSE) # returns a list of x/y coords 2. The outline you get stil

[R] Masking oceans using polypath

2013-07-16 Thread Louise Wilson
Hi R-help I am trying to mask the ocean from an image plot I have made. Here is some example code: library(mapdata) image(x=110:155, y =-40:-10, z = outer(1:45, 1:30, "+"), xlab = "lon", ylab = "lat") outline <- map("worldHires", plot=FALSE) # returns a list of x/y coords xrange <- ra

Re: [R] Masking commands - Permutation in gregmisc and e1071

2011-01-25 Thread Uwe Ligges
On 24.01.2011 23:53, Peter Langfelder wrote: On Mon, Jan 24, 2011 at 2:47 PM, Yanika Borg wrote: I am using the function permutations from the package *gregmisc*. However, I am also making use of the package *e1071*, which also contains a function called permutations. I want to use the functi

Re: [R] Masking commands - Permutation in gregmisc and e1071

2011-01-24 Thread Peter Langfelder
On Mon, Jan 24, 2011 at 2:47 PM, Yanika Borg wrote: > I am using the function permutations from the package *gregmisc*. However, I > am also making use of the package *e1071*, which also contains a function > called permutations. I want to use the function permutations from the * > gregmisc* packa

[R] Masking commands - Permutation in gregmisc and e1071

2011-01-24 Thread Yanika Borg
I am using the function permutations from the package *gregmisc*. However, I am also making use of the package *e1071*, which also contains a function called permutations. I want to use the function permutations from the * gregmisc* package, however, the other package is masking this function. This

[R] masking of objects between mtrace() and getYahooData()

2010-05-04 Thread zerdna
I am using getYahooData from TTR to get daily data. When i do it standalone, it is fine. It also works fine inside my code. However, when i run code inside mtrace(), i always get the following error: Error in xts(cbind(adj[[1]], adj[[2]]), index(obj)): order.by requires an appropriate time-base

Re: [R] masking a regular lat/lon grid to extract map boundaries

2008-10-07 Thread Greg Snow
Intermountain Healthcare [EMAIL PROTECTED] 801.408.8111 > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > project.org] On Behalf Of claudia tebaldi > Sent: Tuesday, October 07, 2008 4:09 PM > To: r-help@r-project.org > Subject: [R] masking a regular lat/l

Re: [R] masking a regular lat/lon grid to extract map boundaries

2008-10-07 Thread Duncan Murdoch
On 07/10/2008 6:08 PM, claudia tebaldi wrote: Dear R-helpers, I have lat/lon coordinates of regularly spaced grid points, about 4Km apart, covering the entire US continental region. I would like to mask this rectangular grid in order to extract all and only the grid points within a specific regi

[R] masking a regular lat/lon grid to extract map boundaries

2008-10-07 Thread claudia tebaldi
Dear R-helpers, I have lat/lon coordinates of regularly spaced grid points, about 4Km apart, covering the entire US continental region. I would like to mask this rectangular grid in order to extract all and only the grid points within a specific region. Today I want to extract Montana, say, from