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 <r.tur...@auckland.ac.nz> 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 &g

[R] intersection of two polygons which are not shapefiles

2016-07-18 Thread Adrienne Wootten
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 Carolina State University [[alternative HTML version d

Re: [R] projectRaster function no values

2016-05-18 Thread Adrienne Wootten
en, 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 Department of

[R] projectRaster function no values

2016-05-17 Thread Adrienne Wootten
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 North Carolina Department of Marine, Earth and Atmospheric Sci

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 <amwoo...@ncsu.edu> wrote:

Re: [R] legend for vectorplot in rasterVis

2016-03-01 Thread Adrienne Wootten
I'm not sure if this 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,

[R] legend for vectorplot in rasterVis

2016-02-29 Thread Adrienne Wootten
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 -- Adrienne Wootten Ph.D

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 <amwoo...@ncsu.edu> wrote: > FYI I did try something like this: > > test = apply(test3,c(1,2),lmfunc,input=t) >

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 <amwoo...@ncsu.edu> wrote

Re: [R] apply regression to an array

2015-10-06 Thread Adrienne Wootten
4 5 6 7 8 9 10 > > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > > On Tue, Oct 6, 2015 at 10:42 AM, Adrienne Wootten <amwoo...@ncsu.edu> > wrote: > > R-Helpers, > > > > I've seen some similar threads about this question online

[R] apply regression to an array

2015-10-06 Thread Adrienne Wootten
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 Carolina Department of Marine, Earth and Atmospheric Sciences

[R] big matrix reading and writing

2014-06-05 Thread Adrienne Wootten
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 Research Assistant State Climate Office

Re: [R] big matrix reading and writing

2014-06-05 Thread Adrienne Wootten
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 amwoo...@ncsu.edu wrote: All, Got a tricky situation and unfortunately because it's

Re: [R] big matrix reading and writing

2014-06-05 Thread Adrienne Wootten
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 amwoo...@ncsu.edu wrote: Jim At the moment I'm using write.table. I tried using write.matrix from the MASS

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 amwoo...@ncsu.edu 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 function

Re: [R] issues with krige function

2012-10-31 Thread Adrienne Wootten
for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey -Oorspronkelijk bericht- Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] Namens Adrienne Wootten Verzonden: dinsdag 30 oktober 2012 18:36 Aan: r

[R] issues with krige function

2012-10-30 Thread Adrienne Wootten
: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 of Marine, Earth and Atmospheric Sciences North Carolina State

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
of colors. A On Mon, Dec 12, 2011 at 4:20 PM, Adrienne Wootten amwoo...@ncsu.edu 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 which takes hourly wind

Re: [R] windrose color ramp issue

2011-12-13 Thread Adrienne Wootten
correction for issues regarding the number of colors, submitted so it will hopefully stay in an archive somewhere for the next person who has this problem. A On Tue, Dec 13, 2011 at 12:12 PM, Adrienne Wootten amwoo...@ncsu.edu wrote: An update on this particular problem I've been having.  It seems

[R] windrose color ramp issue

2011-12-12 Thread Adrienne Wootten
the colors that are passed to it. Say pedalcolors has 40 colors, which are included in the legend, but the windrose only includes the first 16 colors in pedalcolors. Any thoughts as to why this might be happening in either case? Thanks! Adrienne -- Adrienne Wootten Graduate Research Assistant

[R] difftime producing NA values in R 2.12.2

2011-10-25 Thread Adrienne Wootten
! A -- 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-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

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 bbol...@gmail.com wrote: Adrienne Wootten amwootte at ncsu.edu writes: R-listers, I have noticed

[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
list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Adrienne Wootten Graduate Research Assistant State Climate Office of North Carolina Department

Re: [R] For help in R coding

2011-07-05 Thread Adrienne Wootten
-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Adrienne Wootten Graduate Research Assistant State Climate Office of North Carolina

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

2011-06-14 Thread Adrienne Wootten
, 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 Department of Marine

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

2011-06-14 Thread Adrienne Wootten
2.13.0) Arnaud 2011/6/14 Adrienne Wootten amwoo...@ncsu.edu: 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 can re-install the package using this command in R install.packages(tcltk

[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 Carolina Department

Re: [R] error message

2011-01-18 Thread Adrienne Wootten
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:32 AM

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

2011-01-03 Thread Adrienne Wootten
for me. A On Thu, Dec 2, 2010 at 4:36 PM, Adrienne Wootten amwoo...@ncsu.edu 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 Enterprise and gotten the same result, OS

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

2010-12-02 Thread Adrienne Wootten
. 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 [[alternative HTML version deleted]] __ R-help@r

Re: [R] excluding factors from sampling

2010-11-30 Thread Adrienne Wootten
i a j h e b for more information check out the help file for sample ?sample 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, Nov 30, 2010 at 12:45 PM, Emma

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

2010-11-05 Thread Adrienne Wootten
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 helps! A -- Adrienne Wootten Graduate Research Assistant State Climate Office of North Carolina

[R] ggplot map bounds

2010-11-01 Thread Adrienne Wootten
! 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-project.org mailing list https://stat.ethz.ch/mailman/listinfo

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 iz...@psych.rochester.eduwrote: 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 amwoo...@ncsu.edu

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

2010-10-22 Thread Adrienne Wootten
) | 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. Adrienne Wootten NCSU On Fri, Oct 22

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 for the

Re: [R] printing a variable during a loop

2010-10-21 Thread Adrienne Wootten
help section in the html ? message Adrienne Wootten NCSU On Thu, Oct 21, 2010 at 2:05 PM, Antonio Olinto aolint...@bignet.com.brwrote: 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=c(0,0.025,0.25,0.5,0.75,0.975,1

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 brida...@pdx.edu wrote: I'm a new-ish user using a for loop to create many hundreds of plots. I'm using the par function

Re: [R] Error: subscript out of bounds

2010-10-18 Thread Adrienne Wootten
is. Try looking at that first. Adrienne Wootten NCSU On Mon, Oct 18, 2010 at 12:35 AM, IRD ird_u...@hotmail.com wrote: Dear All I have problem with this: IWJR.temp -IWJR.missing[sample(1:length(IWJR.missing),1),] Error: subscript out of bounds How I can solved this. Thanks IRD

Re: [R] Question

2010-10-18 Thread Adrienne Wootten
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 margaretta_...@rambler.ruwrote: 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

[R] cwhmisc package error

2010-09-21 Thread Adrienne Wootten
, 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 this keeps happening would be very helpful! Thanks! Adrienne Wootten Graduate Research Assistant State Climate

Re: [R] If then else with command for

2010-09-14 Thread Adrienne Wootten
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 redefined x in your first iteration of the loop. Adrienne Adrienne Wootten Graduate Research Assistant State Climate Office of North

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

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
question Thanks in advance! Adrienne Wootten Graduate Research Assistant/Environmental Meteorologist M.S. Atmospheric Science NC State University State Climate Office of North Carolina Raleigh, NC 27695 [[alternative HTML version deleted

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
thought it best to try to explain what I was doing first, before diving into my question Thanks in advance! Adrienne Wootten Graduate Research Assistant/Environmental Meteorologist M.S. Atmospheric Science NC State University State Climate Office of North Carolina Raleigh, NC

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
, 2010 at 8:15 AM, Adrienne Wootten amwoo...@ncsu.edu wrote: Not quite what I was trying to say. The process generates a random uniform number between 0 and 1 and compares to a specific conditional probability. It is looking for this in particular: random number Pr( rain(station=i,day=d)=1

[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
anything from previous posts about getting out of loops where the previous iteration is required to determine the next calculation. Sorry for the length of the post, but I thought it best to try to explain what I was doing first, before diving into my question Thanks in advance! Adrienne Wootten

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
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: Wednesday, August 11, 2010 10:36 AM To: r-help@r-project.org Subject: [R] Running