Re: [R] Count unchanged class attribute

2015-05-20 Thread Soe Xiyan
My apologize if the question is confusing. This is due to my English language. Thanks to Jim Lemon who has helped me. I must to learn R harder, like how to use "unlist" and "list". On Wed, May 20, 2015 at 1:36 PM, Jim Lemon wrote: > Hi Xiyan, > I have to admit that your puzzle very nearly stump

Re: [R] Subset and 0 replace?

2015-05-20 Thread William Dunlap
Can you show a small self-contained example of you data and expected results? I tried to make one and your expression returned a single number in a 1 by 1 matrix. library(doBy) Generation<-list( data.frame(Wgt=c(1,2,4), SPCLORatingValue=c(10,11,12)), data.frame(Wgt=c(8,16), SPCLORatingValue=

Re: [R] Vincentizing Reaction Time data in R

2015-05-20 Thread Bert Gunter
I have one more suggestion: Consult a local statistician. Psychology, neuroscience (and a host of other professions that I have encountered) are full of bad statistical practice and reinvention of wheels. "Vincentizing" sounds suspiciously like such an example. A statistician could help you sort it

Re: [R] Interfacing Python from R

2015-05-20 Thread Bert Gunter
Search. (Not a new idea!) (I googled on "Call python from R" and found at least one more package). -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." Clifford Stoll On Wed,

Re: [R] Vincentizing Reaction Time data in R

2015-05-20 Thread Gabriel WEINDEL
John Kane : I already read the paper and wrote an e-mail to the author, he used matlab and suggested me to ask this same question on this forum. But thank you for your answer. John McKown : thanks a lot, this could be a great help to me but I have to take a closer look. Again thank you for y

Re: [R] Vincentizing Reaction Time data in R

2015-05-20 Thread Yisihn
On Wed, 20 May 2015 18:13:17 +0800, Hi Gabriel, As far as I could recall, there isn't an R package that has explicitly implemented "vincentization". You definitively can find some code segments/functions that have implemented "vincentize" on the web. But you should verify if they do exactly wha

[R] Interfacing Python from R

2015-05-20 Thread Ralph Fehrer
Hi, I need to call python code from within R. So far, I have found http://rpython.r-forge.r-project.org/(which is not supported for windows) and http://www.omegahat.org/RSPython/ (which has not been maintained since 2005) . Is there any R-package for python inte

Re: [R] Vincentizing Reaction Time data in R

2015-05-20 Thread Daniel Nordlund
On 5/20/2015 6:22 PM, John Kane wrote: -Original Message- From: gabriel.wein...@gmail.com Sent: Wed, 20 May 2015 22:31:48 +0200 To: jrkrid...@inbox.com, john.archie.mck...@gmail.com Subject: Re: [R] Vincentizing Reaction Time data in R John Kane : I already read the paper and wrote an

Re: [R] Vincentizing Reaction Time data in R

2015-05-20 Thread John Kane
> -Original Message- > From: gabriel.wein...@gmail.com > Sent: Wed, 20 May 2015 22:31:48 +0200 > To: jrkrid...@inbox.com, john.archie.mck...@gmail.com > Subject: Re: [R] Vincentizing Reaction Time data in R > > John Kane : I already read the paper and wrote an e-mail to the author, > he

Re: [R] Subset and 0 replace?

2015-05-20 Thread Duncan Murdoch
On 20/05/2015 7:13 PM, Vin Cheng wrote: > Hi, > > I'm trying to group rows in a dataframe with SPCLORatingValue factor >16 and > summing the Wgt's that correspond to this condition. There are 100 > dataframes in a list. > > Some of the dataframes won't have any rows that have this conditio

[R] Subset and 0 replace?

2015-05-20 Thread Vin Cheng
Hi, I'm trying to group rows in a dataframe with SPCLORatingValue factor >16 and summing the Wgt's that correspond to this condition. There are 100 dataframes in a list. Some of the dataframes won't have any rows that have this condition SPCLORatingValue>16 and therefore no corresponding

[R] ASA Conference on Statistical Practice

2015-05-20 Thread Adams, Jean
R users, Abstracts are now being accepted for the 2016 ASA Conference on Statistical Practice, February 18-20, San Diego, CA, USA. Past conference attendees have shown particular interest in R, reproducibility, and data visualization. The deadline for submission is June 25. Prese

Re: [R] Vincentizing Reaction Time data in R

2015-05-20 Thread John Kane
John Kane Kingston ON Canada > -Original Message- > From: john.archie.mck...@gmail.com > Sent: Wed, 20 May 2015 09:38:47 -0500 > To: gabriel.wein...@gmail.com > Subject: Re: [R] Vincentizing Reaction Time data in R > > On Wed, May 20, 2015 at 5:13 AM, Gabriel WEINDEL > > wrote: > >> Dea

Re: [R] subsetting question

2015-05-20 Thread MacQueen, Don
Assuming datums is a vector of the unique dates in Date... perhaps datums <- sort(unique(dataset1$Date)) I usually set it up like this for (i in 1:length(datums) ) { crnt.date <- datums[i] tmpdat <- subset(dataset1, Date==crnt.date) cat(i, format(crnt.date), 'dim(tmpdat)',dim(tmpdat),'\n

Re: [R] deSolve ODE Output Question

2015-05-20 Thread David Winsemius
On May 20, 2015, at 6:45 AM, walke554 wrote: > Hello, > > I am working on a simple ODE problem with the deSolve package, and I was > hoping that someone could answer a question about how the deSolve package > does integration. > > Here is my program: > > #The function > STDMod<-function(t,y,

Re: [R] java.lang.OutOfMemoryError: Java heap space

2015-05-20 Thread NidhiRai
Hello Bharat, I am also getting the same error in same situation. Just want to know that did you resolved your problem, if yes then can you please help me out. Thanks !! -- View this message in context: http://r.789695.n4.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-tp4680963p47074

Re: [R] subsetting question

2015-05-20 Thread William Dunlap
Here is a self-contained example of what you might be trying to do. You would get better answers if you supplied this yourself. dataset1 <- data.frame(Date=as.POSIXct(c("2015-04-01","2015-04-01","2015-04-07", "2015-04-19")), Weight=11:14) datums <- as.POSIXct(c("2015-04-01", "2015-04-08", "2015-04

Re: [R] Error after performing anosim function with vegan

2015-05-20 Thread David L Carlson
We are not going to be able to help much without the data. You say it is "more or less" the same as the example data so maybe it is "less" similar than you think. Another possibility is that you keep using fix() for some reason that you have not explained. That function calls edit() which can

Re: [R] About manipulating NetCDF files in ncdf package.

2015-05-20 Thread Roy Mendelssohn - NOAA Federal
Hi Thanh: You are confounding several issues here, and are providing only incomplete information about your data. The confounded issues are: 1. How to write a netcdf with a given coordinate system. 2. How to calculate a monthly average or monthly subsample from a larger sample. I would gu

Re: [R] Vincentizing Reaction Time data in R

2015-05-20 Thread John McKown
On Wed, May 20, 2015 at 5:13 AM, Gabriel WEINDEL wrote: > Dear all, > > For my master thesis, I'm currently working in cognitive neuroscience on > executive control through measurement of reaction time and I need to get my > data 'vincentized' with an exclusive use of R set by my statistic teache

Re: [R] subsetting question

2015-05-20 Thread Ivan Calandra
Hi, What about using functions like aggregate()? Something like: aggregate(Weight~datums, data=dataset1, FUN=mean) If you need to do more things, you can create your own function for 'FUN' HTH, Ivan -- Ivan Calandra, ATER University of Reims Champagne-Ardenne GEGENAA - EA 3795 CREA - 2 esplana

[R] About manipulating NetCDF files in ncdf package.

2015-05-20 Thread Thanh Huyền Trần
Dear R-project staffs, I'm now dealing with some NetCDF files for my scientific work and I'm reading it and manipulating it with R. So far I would like to ask some questions: 1. I have a NetCDF file for time-series data (*daily* time step) in a domain (with longitudes and latitudes) with two varia

[R] subsetting question

2015-05-20 Thread Dieter Anseeuw
Dear all, I would like to do multiple actions on a subset of my data. Therefore, I want to create a for loop on the variable "Date" (actually a double for loop on yet another variable, but let's omit that for a moment). I want to run down every level of "Date" and perform multiple actions on the

[R] Vincentizing Reaction Time data in R

2015-05-20 Thread Gabriel WEINDEL
Dear all, For my master thesis, I'm currently working in cognitive neuroscience on executive control through measurement of reaction time and I need to get my data 'vincentized' with an exclusive use of R set by my statistic teacher for a test purpose, for this reason I can't use the python co

[R] Error after performing anosim function with vegan

2015-05-20 Thread Brenzo
Hello, so I'm relatively new in R, but normally i don't have big problems by using R. But today i struggle a lot with an error message that occurred the first time. Error in sort.int(x, na.last = na.last, decreasing = decreasing, ...) : 'x' must be atomic I'm using just a normal anosim func

[R] deSolve ODE Output Question

2015-05-20 Thread walke554
Hello, I am working on a simple ODE problem with the deSolve package, and I was hoping that someone could answer a question about how the deSolve package does integration. Here is my program: #The function STDMod<-function(t,y,p){ IH = y[1]; IL = y[2]; with(as.list(p),

Re: [R] Fixed effects regression and robust regression

2015-05-20 Thread S Ellison
> since the OLS and robust regressions have the same number of DFs, looking > at the residual standard error is insightful. Sadly not. The residual scale in a robust model is only partly indicative of goodness of fit; robust models intentionally downweight outliers. Much of the difference in