Re: [R] categorizing data

2022-05-29 Thread Janet Choate
for > things like: > > if ( current == min(mydata[1,])) ... > > > -Original Message- > From: Tom Woolman > To: Janet Choate > Cc: r-help@r-project.org > Sent: Sun, May 29, 2022 3:42 pm > Subject: Re: [R] categorizing data > > > Some ideas: &g

[R] turning a list of objects into columns

2019-06-29 Thread Janet Choate
Hi, I have a data frame that looks something like this (but much longer): df scen streamflowtrans evap psn 1 0.019234 1.658967 0.002883 0.002391 1 0.019027 1.661192 0.002844 0.003142 2 0.018821 1.695623 0.003192 0.002167 2 0.018619 1.503481 0.002536 0.003059 3 0.018425

[R] splitting a column of data into multiple columns

2019-06-28 Thread Janet Choate
Hello R community, I have a data frame that has multiple observations in a single column that I would like to break into multiple columns. The data looks something like this: scen trans evap flow 1 1.10.10.09 1 1.20.20.10 1 1.30.30.20 2 2.10.1

[R] pulling recessions out of a hydrograph

2018-02-05 Thread Janet Choate
Dear R community, I'm hoping someone out there has perhaps done this and can share their code and/or expertise with me. I need to pull recession periods out of a hydrograph - can anyone help me with this? I want to create a subset from streamflow data that consists of just the recession curves -

[R] Using Moran.I

2014-08-14 Thread Janet Choate
Dear R community, i am attempting to use Moran.I for the first time, and am not quite sure on the inputs needed i have loaded the ape library. i have a data frame that includes concentrations of nutrients (no3, nh4, po4) and the percentage of different land use types (urb, ag, ud, comm, sr,

[R] function completing properly

2014-07-09 Thread Janet Choate
Hi R community, i created a function (mkdate) as follows: mkdate = function(x) { x$date = as.Date(paste(x$year, x$month, x$day, sep=-)) x$wy = ifelse(x$month =10, x$year+1, x$year) x$yd = as.integer(format(as.Date(x$date), format=%j)) x$wyd = cal.wyd(x) x } the function results in adding the new

[R] Merge and specify column output order

2014-01-15 Thread Janet Choate
Hi, i am merging two data frames of different time periods, so that the result contains data from both for the same time period. however, I want the result to output columns in a certain order. the common column between the two data frames is date. for example: df1 columns: mod1 mod2 mod3 mod4

[R] Plot only a portion of a record

2014-01-13 Thread Janet Choate
Hi R community, i have a data frame of streamflow for 23 years, i.e. date year month day wy yd wyd modQ 1 1965-10-01 196510 1 1966 274 1 0.3341630 2 1965-10-02 196510 2 1966 275 2 0.3223247 3 1965-10-03 196510 3 1966 276 3 0.3109057 i only want to plot 1

[R] summing 15 minute precip data to daily

2011-02-17 Thread Janet Choate
Hi all, i'm sure there is an easy way to do this, but i'm stumped, so any help would be appreciated. i have a single column of data for precipitation every 15 minutes over a year. i want to sum the precip to daily data. so the first 96 records = the first day, the second 96 records = the second

[R] memory error

2010-03-31 Thread Janet Choate
Hi R community, i have what appears to be a memory allocation problem: R(51150) malloc: *** mmap(size=158068736) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug can anyone tell me how to increase the memory size for R on mac os X?

Re: [R] memory error

2010-03-31 Thread Janet Choate
:47 PM, Sharpie ch...@sharpsteen.net wrote: Janet Choate-2 wrote: Hi R community, i have what appears to be a memory allocation problem: R(51150) malloc: *** mmap(size=158068736) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break

[R] increase size of filled box in a legend

2009-10-21 Thread Janet Choate
Hello R user community, can anyone tell me how to increase the size of a filled box in a legend? thanx, Janet [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read