[R] Statistical / data mining methods in R and not in SAS?

2017-08-14 Thread fs
Hi, and sorry for asking such an unspecific question. Does anybody know of statistical / data mining methods that are available in R that are not in SAS ? With SAS I mean the SAS System Version 9.4 and SAS Enterprise Miner. I don't expect a complete list, just two or three examples or hints whe

[R] Calculating the focal mean of a raster using an annulus

2014-05-30 Thread Parks, Sean -FS
Hello esteemed R experts, I am attempting the use the 'focal' function in the raster package to calculate the mean of an annulus (as opposed to a focal mean of a circle or square). >From what I can tell, this requires me to generate a weights matrix and use >this matrix in the focal function.

[R] pixel based percentile among rasters

2013-12-19 Thread Parks, Sean -FS
Hi, Say I have 1000 rasters, or a raster stack composed of 1000 rasters. I am interested in knowing the percentile for each pixel among these 1000 rasters. The result would be 1000 rasters, each depicting the percentile value of each pixel among the 1000 original rasters. Can anyone please of

[R] using correlation compound correlation structure with nlme; how to incorporate multple random effects?

2013-09-06 Thread Meredith, Christy S -FS
Hello, I have developed this model to test change in PTFines6 over time. I have random effects of watershed (HUC3) and management type (mgmt3), and then I have the YrC/SiteID random effect which is the longitudinal time effect. But I recently found out that I need to incorporate a compound cor

[R] randomly select another observation with same grouping factor and year value, do for every record in dataframe

2012-10-24 Thread Meredith, Christy S -FS
Hello, I am trying to create a function that will move through each record of a data frame, find the value in the "HUC" column, then randomly select another observation from the dataframe with the same value in "HUC" column, as well as the same value in "Yr" column as the first observation. I w

[R] help with for loop: new column giving count of observation for each SITEID

2012-10-30 Thread Meredith, Christy S -FS
Hello, I think this is easy, but I can't seem to find a good way to do this in the R help. I have a list of sites, with multiple years of data for each site id. I want to create a new column that gives a number describing whether it is the 1st year ("1" ) the data was collected for the site, th

Re: [R] help with for loop: new column giving count of observation for each SITEID

2012-10-30 Thread Meredith, Christy S -FS
, Christy S -FS; r-help@R-project.org Subject: RE: [R] help with for loop: new column giving count of observation for each SITEID Is this what you want? > withinGroupIndex <- function(group, ...) ave(integer(length(group)), group, ..., FUN=seq_along) > site <- c("A",

Re: [R] help with for loop: new column giving count of observation for each SITEID

2012-11-01 Thread Meredith, Christy S -FS
34 2946 2010 2.251 -Original Message- From: arun [mailto:smartpink...@yahoo.com] Sent: Tuesday, October 30, 2012 1:57 PM To: Meredith, Christy S -FS Cc: R help; William Dunlap Subject: Re: [R] help with for loop: new column giving count of observation for each SITEID HI, You c

[R] Remove wireframe outer box but keep ticks

2012-03-23 Thread Bigelow, Seth W -FS
here a way to eliminate the box but keep the ticks? Seth W. Bigelow, Ph.D. Research Ecologist USDA-FS Pacific Southwest Research Station Ph: (802)-379-3444 This electronic message contains information generated by the USDA solely for the intended recipients. Any unauthorized interception of

Re: [R] Remove wireframe outer box but keep ticks

2012-03-23 Thread Bigelow, Seth W -FS
@gmail.com [mailto:ila...@gmail.com] On Behalf Of ilai Sent: Friday, March 23, 2012 11:10 AM To: Bigelow, Seth W -FS Cc: r-help@r-project.org Subject: Re: [R] Remove wireframe outer box but keep ticks See 'box.3d' in trellis.par.get() : wireframe(z ~ x*y, data = test, scales=list(arro

Re: [R] Remove wireframe outer box but keep ticks

2012-03-23 Thread Bigelow, Seth W -FS
Wow, that worked liked a charm. I will include the entire working example of how to remove the outer box without losing the ticks: test = data.frame(expand.grid(c(1:10), c(1:10))) z = test[,1] + test[,2] test = cbind(test, z) names(test) = c("x", "y", "z") require(lattice) wireframe(z ~ x*y, data