Re: [R] [FORGED] intersection of two polygons which are not shapefiles

2016-07-19 Thread Adrienne Wootten
Thanks! That's just what I was looking for! A On Mon, Jul 18, 2016 at 5:56 PM, Rolf Turner wrote: > On 19/07/16 01:16, Adrienne Wootten wrote: > >> All, >> >> Greetings! I hope things are going well for all! I apologize if someone's >> already answered t

[R] intersection of two polygons which are not shapefiles

2016-07-18 Thread Adrienne Wootten
. Knowing me it's something obvious I'm just not seeing right now. Thanks all! Adrienne -- Adrienne Wootten Ph.D Candidate / Graduate Research Assistant State Climate Office of North Carolina Department of Marine, Earth and Atmospheric Sciences North Car

Re: [R] projectRaster function no values

2016-05-18 Thread Adrienne Wootten
ve been, which is covering Eastern North America. I had to mess with the resolution and extent a bit, but once I did it worked beautifully with projectRaster. Thanks again! Adrienne -- Adrienne Wootten Ph.D Candidate / Graduate Research Assistant State Climate Office of North Carolina Departmen

[R] projectRaster function no values

2016-05-17 Thread Adrienne Wootten
uite perplexed with this one, I feel like I'm doing everything right so I'm not sure what's failing. The R version is R 3.2.3 in a Linux/Unix environment. Many thanks for your help! Adrienne -- Adrienne Wootten Ph.D Candidate / Graduate Research Assistant State Climate Office of No

Re: [R] legend for vectorplot in rasterVis

2016-03-01 Thread Adrienne Wootten
All, Thanks anyway folks, but I'm going to call myself a bonehead and move on now that I've found it. The key.arrow argument in vectorplot will do what I need to make a scale legend. Thanks all! Adrienne On Tue, Mar 1, 2016 at 9:14 AM, Adrienne Wootten wrote: > Ji

Re: [R] legend for vectorplot in rasterVis

2016-03-01 Thread Adrienne Wootten
s will help, but lengthKey in the plotrix package > will display a scale showing the relationship of vector length to > whatever numeric value is being displayed. However, you do have to > sort of the scaling manually. > > Jim > > > On Tue, Mar 1, 2016 at 7:30 AM, Adrienne Wootten

[R] legend for vectorplot in rasterVis

2016-02-29 Thread Adrienne Wootten
first chart on this page http://www.wishingwork.com/grads/graphics-controls/vector-graphics.html) I haven't seen this done yet with R, at least not from what I could find with all the forums. If anyone has an idea on how to do this, I tremendously appreciate it! Thanks all! Adrienne -- A

Re: [R] apply regression to an array

2015-10-06 Thread Adrienne Wootten
; > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > > On Tue, Oct 6, 2015 at 10:42 AM, Adrienne Wootten > wrote: > > R-Helpers, > > > > I've seen some similar threads about this question online, but not quite > > what I'm looking for. I

Re: [R] apply regression to an array

2015-10-06 Thread Adrienne Wootten
Almost forgot that function lmfunc is this: lmfunc = function(valist,input){ fitted.values(lm(valist~input)) } A On Tue, Oct 6, 2015 at 2:41 PM, Adrienne Wootten wrote: > FYI I did try something like this: > > test = apply(test3,c(1,2),lmfunc,input=t) > > but that gives me a

Re: [R] apply regression to an array

2015-10-06 Thread Adrienne Wootten
FYI I did try something like this: test = apply(test3,c(1,2),lmfunc,input=t) but that gives me an array that is 10 rows by 5 columns by 5 slices, and I need it to keep the same dimensions as test3 (5x5x10) A On Tue, Oct 6, 2015 at 1:42 PM, Adrienne Wootten wrote: > R-Helpers, > >

[R] apply regression to an array

2015-10-06 Thread Adrienne Wootten
a fourth order regression with a much larger array, but this simple example illustrates the question I have. Many thanks for the help! Sorry if someone's already answered this and I can't find it. Adrienne -- Adrienne Wootten Graduate Research Assistant State Climate Office of North Caroli

Re: [R] big matrix reading and writing

2014-06-05 Thread Adrienne Wootten
oing on it. > > > Jim Holtman > Data Munger Guru > > What is the problem that you are trying to solve? > Tell me what you want to do, not how you want to do it. > > > On Thu, Jun 5, 2014 at 9:48 AM, Adrienne Wootten > wrote: > >> Jim >> >> At the

Re: [R] big matrix reading and writing

2014-06-05 Thread Adrienne Wootten
information to make a definitive solution. > > > Jim Holtman > Data Munger Guru > > What is the problem that you are trying to solve? > Tell me what you want to do, not how you want to do it. > > > On Thu, Jun 5, 2014 at 9:26 AM, Adrienne Wootten > wrote: > &g

[R] big matrix reading and writing

2014-06-05 Thread Adrienne Wootten
y not be wise to save it as an object in R when read in, so I'm wondering is there anyway to have R do the calculation it needs to do without saving the matrix as an object in R? Basically can I have it run the calculation off the file itself? Thanks! Adrienne -- Adrienne Wootten Graduate Rese

Re: [R] issues with krige function

2012-10-31 Thread Adrienne Wootten
her > > The plural of anecdote is not data. > ~ Roger Brinner > > The combination of some data and an aching desire for an answer does not > ensure that a reasonable answer can be extracted from a given body of data. > ~ John Tukey > > > -Oorspronkelijk bericht

Re: [R] issues with krige function

2012-10-31 Thread Adrienne Wootten
My apologies to all, the package is gstat that I am using not geoR. thanks! A On Tue, Oct 30, 2012 at 1:35 PM, Adrienne Wootten wrote: > Greetings all, > > Ran into a strange problem with the krige function from geoR. The > problem that I am having is that while the krige funct

[R] issues with krige function

2012-10-30 Thread Adrienne Wootten
.16 Max. : NA Max. : NA NA's :44408 NA's :44408 Any ideas are greatly appreciated, I'm not getting any warnings or errors from krige, so this is perplexing to me. -- Adrienne Wootten Graduate Research Assistant State Climate Office of North Carolina Department

Re: [R] how to read netcdf file in R

2012-04-02 Thread Adrienne Wootten
Yogesh, The package I most commonly use for reading and working with netcdfs is called ncdf. It has a collection of commands for working with netcdf files, but the open command is open.ncdf in this package Adrienne -- Adrienne Wootten Graduate Research Assistant State Climate Office of North

Re: [R] windrose color ramp issue

2011-12-13 Thread Adrienne Wootten
gt; windrose not the number of colors. > > A > > On Mon, Dec 12, 2011 at 4:20 PM, Adrienne Wootten wrote: >> Greetings! >> >> I'm having an issue with the windrose produced by the windrose >> function from the circular package.  For our weather stations in N

Re: [R] windrose color ramp issue

2011-12-13 Thread Adrienne Wootten
er of colors. A On Mon, Dec 12, 2011 at 4:20 PM, Adrienne Wootten wrote: > Greetings! > > I'm having an issue with the windrose produced by the windrose > function from the circular package.  For our weather stations in North > Carolina I'm helping with a script whi

[R] windrose color ramp issue

2011-12-12 Thread Adrienne Wootten
hen gives only white for the remaining bands of each pedal. For the second case, when pedalcolors will have the same number of colors as numcolors, the legend has the right color ramp, but the pedals of the windrose don't have all the colors that are passed to it. Say pedalcolors has 40 colors,

Re: [R] difftime producing NA values in R 2.12.2

2011-10-25 Thread Adrienne Wootten
Ben, Thanks! That really helped. Turns out all the data being used was in EST and currently the system timezone is EDT. Thanks for the tip! A On Tue, Oct 25, 2011 at 2:27 PM, Ben Bolker wrote: > Adrienne Wootten ncsu.edu> writes: > >> >> R-listers, >> >>

[R] difftime producing NA values in R 2.12.2

2011-10-25 Thread Adrienne Wootten
since last rainfall, so everything gets thrown off with this producing NA's. For reference, Operating system is Windows 7 Enterprise, R is version 2.12.2 (64-bit), any guidance is appreciated. Thanks in advance! A -- Adrienne Wootten Graduate Research Assistant State Climate Office of No

[R] Wind roses with circular package

2011-09-30 Thread Adrienne Wootten
and that none of the pedals going beyond the outside frequency ring. Anyone have ideas on how to do this? The package used is the circular package. Thanks in advance! -- Adrienne Wootten Graduate Research Assistant State Climate Office of North Carolina Department of Marine, Earth and Atmospheric

Re: [R] foreach not recognizing functions in memory

2011-07-12 Thread Adrienne Wootten
;could not find function > "testFun"" >> > > Thanks, > > Roger > > *** > > This message is for the named person's use only. It may\...{{dropped:20}} > > ______ > R-help@r-proje

Re: [R] For help in R coding

2011-07-05 Thread Adrienne Wootten
and , >> > >> > Should I explain better or can you please tell me which thing is not >> > clear? >> >> My second posting today had a solution. >> >> >> > >> >> >> > -- >> > David. >> >> >> >&

Re: [R] Still have problems with tcltk in R 64 bit

2011-06-14 Thread Adrienne Wootten
 package ‘tcltk’ is not available (for R version 2.13.0) > > Arnaud > > > 2011/6/14 Adrienne Wootten : >> First thing is to delete the old package from your system, you can do >> this simply by deleting the files associated with the package. >> >> Second, you

Re: [R] Still have problems with tcltk in R 64 bit

2011-06-14 Thread Adrienne Wootten
ge installation, specifically that something happened which may have damaged the .dll file. So to answer your last question, I'd try re-installing the Tcl/Tk package and see if that fixes the problem. Adrienne -- Adrienne Wootten Graduate Research Assistant State Climate Office of North Carolina

[R] Crouts algorithm

2011-04-20 Thread Adrienne Wootten
R-listers Quick question for the group. Is there any LU decomposition that makes use of Crout's algorithm in R. I've been looking for it and I really haven't seen it among the R packages. A -- Adrienne Wootten Graduate Research Assistant State Climate Office of North Carolin

Re: [R] error message

2011-01-18 Thread Adrienne Wootten
rough your function and find where your function crashed if not why exactly. Give it a try. A -- Adrienne Wootten Graduate Research Assistant State Climate Office of North Carolina Department of Marine, Earth and Atmospheric Sciences North Carolina State University On Tue, Jan 18, 2011 at 11:

Re: [R] parLapply - Error in do.call("fun", lapply(args, enquote)) : could not find function "fun"

2011-01-03 Thread Adrienne Wootten
ardless, this is what worked for me. A On Thu, Dec 2, 2010 at 4:36 PM, Adrienne Wootten wrote: > Hello everybody, > > I've got a bit of a problem with parLapply that's left me scratching my > head today. I've tried this in R 2.11 and the 23 bit Revolution R > Enter

[R] parLapply - Error in do.call("fun", lapply(args, enquote)) : could not find function "fun"

2010-12-02 Thread Adrienne Wootten
ened, but the code involved is somewhat extensive. Any ideas all of you have would be wonderful. Thanks in advance! A -- Adrienne Wootten Graduate Research Assistant State Climate Office of North Carolina Department of Marine, Earth and Atmospheric Sciences North Carolina State University

Re: [R] excluding factors from sampling

2010-11-30 Thread Adrienne Wootten
group),replace=FALSE) [1] "h" "j" "g" "f" "d" "i" "e" "b" "a" "c" but if you change replace to be TRUE > sample(group,length(group),replace=TRUE) [1] "j" "h" "e&quo

Re: [R] How to extract Friday data from daily data.

2010-11-05 Thread Adrienne Wootten
seq.dates can allow you to get the appropriate dates for a specific day of the week for every week that you want. something like this for instance: as.Date(seq.dates("7/3/2009","7/24/2009",by="weeks"),"%m/%d/%Y") for all the Fridays in July 2009. Hope this hel

Re: [R] ggplot map bounds

2010-11-01 Thread Adrienne Wootten
Oh this is excellent, Thanks! Adrienne On Mon, Nov 1, 2010 at 11:25 AM, Ista Zahn wrote: > Hi Adrienne, > I think > > usamap + xlim(c(-85, -75)) + ylim(c(33,37)) > > will do what you want. > > Best, > Ista > > On Mon, Nov 1, 2010 at 10:52 AM, Adrienne Wootten

[R] ggplot map bounds

2010-11-01 Thread Adrienne Wootten
1)) Any ideas for how I can fix this map would be appreciated! Adrienne -- Adrienne Wootten Graduate Research Assistant State Climate Office of North Carolina Department of Marine, Earth and Atmospheric Sciences North Carolina State University __ R-help@r-pr

Re: [R] Conditional looping over a set of variables in R

2010-10-22 Thread Adrienne Wootten
=ncol(testmat) | testmat[i,c] != "1" ){ if( testmat[i,c] == "1"){ first[i] = c break # will exit the while loop once it finds the first correct answer, and then jump to the next case } else { c=c+1 # procede to the next column if not } } } Hope this helps you out a bit. Ad

Re: [R] Help saving multiple graphics

2010-10-21 Thread Adrienne Wootten
high quality, and therefore you might get a really large file size. for more say this in R ? pdf Adrienne Wootten NCSU On Thu, Oct 21, 2010 at 2:13 PM, briandavispdx wrote: > > > I'm a new-ish user using a for loop to create many hundreds of plots. I'm > using the "p

Re: [R] printing a variable during a loop

2010-10-21 Thread Adrienne Wootten
r more check out the message help section in the html ? message Adrienne Wootten NCSU On Thu, Oct 21, 2010 at 2:05 PM, Antonio Olinto wrote: > Hello, > > About looping, consider the example: > > for (i in 1:23194) { > > dat.stat[i,c(2:8)]<-quantile(dat.bat[BL==block[i],2],prob

Re: [R] data.frame query

2010-10-21 Thread Adrienne Wootten
Try this: before your loop put this output1 <- NULL in the loop at the end put this temp <- data.frame(cbind(k,n,lam,Q)) output1 <- rbind(output1,temp) this should do the trick for you Adrienne NCSU On Thu, Oct 21, 2010 at 12:52 PM, Etn <2nuzz...@gmail.com> wrote: > Hi All, > > Apologies fo

Re: [R] Question

2010-10-18 Thread Adrienne Wootten
pulling a random line from a dataset consider using the sample function ? sample Adrienne Wootten NCSU On Mon, Oct 11, 2010 at 1:32 PM, Margaretta 2014 wrote: > Hello. > I would be very grateful if you could help me in using R. > I need R commands of pseudo random value and qvazi (quazi

Re: [R] Error: subscript out of bounds

2010-10-18 Thread Adrienne Wootten
n what the object IWJR.missing is. Try looking at that first. Adrienne Wootten NCSU On Mon, Oct 18, 2010 at 12:35 AM, IRD wrote: > > Dear All >I have problem with this: > > > IWJR.temp <-IWJR.missing[sample(1:length(IWJR.missing),1),] > Error: subscript o

[R] cwhmisc package error

2010-09-21 Thread Adrienne Wootten
n I open R in a different working directory of the server, the lowerize function works without giving this error, for a short while. Before long, it begins giving the aforementioned error message again. I haven't found anything in the archives on this so I turn to the R-listers. Any ideas on why

Re: [R] If then else with command for

2010-09-14 Thread Adrienne Wootten
op was: x <- sample(x,142,replace=FALSE) when you did this you altered your assignment of x to be the sample of your original x with a length of 142. Subsequent iterations of the loop had the same data as the original iteration, but sampled randomly. Your if statements were good, you just rede

Re: [R] cannot allocate vector of size 381.5 Mb

2010-08-31 Thread Adrienne Wootten
I would suggest two things here: check on the size of other object you may have stored in memory, and get rid of what you don't need. ? ls ? rm also, consider running garbage collection to help free up memory in R gc() I hope this helps! A On Tue, Aug 31, 2010 at 1:56 AM, rusers.sh wrote: >

Re: [R] Running something without a loop when the result from the previous iteration is require for the current iteration

2010-08-13 Thread Adrienne Wootten
NA1 NA1 NA1 NA > > > NA0 NA0 NA0 NA > > > > > > Where event.gen2 is this function: > > > > > > event.gen2 = function(genmat,use1,use2,num,ortho_obs_used){ > > > > > > for(r in 2:nrow(genm

Re: [R] Running something without a loop when the result from the previous iteration is require for the current iteration

2010-08-12 Thread Adrienne Wootten
genmat[r,use1]==0 & genmat[r,use2]==0){ >> > >> >> genmat[r,num]<-ifelse(genmat[r-1,num]==0,ifelse(ran> > 0),ifelse(ran> > } >> > >> > if(genmat[r,use1]==0 & genmat[r,use2]==1){ >> > >> >> genmat[r,num]<

Re: [R] Running something without a loop when the result from the previous iteration is require for the current iteration

2010-08-12 Thread Adrienne Wootten
() > > } > > > > genmat > > > > } > > > > > > > > ortho_obs_used is a data frame that contains the probablity of > precipitation > > occurring on a given day for a specific set of condtions.

Re: [R] Running something without a loop when the result from the previous iteration is require for the current iteration

2010-08-11 Thread Adrienne Wootten
Ph.D. > Statistical Data Center > Intermountain Healthcare > greg.s...@imail.org > 801.408.8111 > > > > -Original Message- > > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > > project.org] On Behalf Of Adrienne Wootten > > Sent: Wednes

[R] Running something without a loop when the result from the previous iteration is require for the current iteration

2010-08-11 Thread Adrienne Wootten
Hello Everyone! Here's what I'm trying to do. I'm working on generating occurrences of precipitation based upon precipitation occurrence for a station during the previous day and two stations that have already been generated by joint probablities and 1st order Markov chains or by the same generat