Re: [R] Error in gam() object 'scat' no found

2016-09-27 Thread Karl Neergaard
Thank you David for taking time to answer my not so helpful question. On Tue, Sep 27, 2016 at 11:15 PM, David Winsemius wrote: > > > On Sep 26, 2016, at 9:50 PM, Karl Neergaard > wrote: > > > > I received an error message while trying to use

Re: [R] OPeNDAP access / OPeNDAP subsetting with R

2016-09-27 Thread Michael Sumner
Opendap won't work on Windows CRAN build of ncdf4, though the rgdal build does work directly on grib. Summary: download the files wholus for use on Windows, or set your own system on Linux. Building ncdf4 on Windows is not too hard if you know about doing that. Cheers, Mike On Wed, 28 Sep

[R] How to test a difference in ratios of count data in R

2016-09-27 Thread Shuhua Zhan
Hello R-experts, I am interested to determine if the ratio of counts from two groups differ across two distinct treatments. For example, we have three replicates of treatment A, and three replicates of treatment B. For each treatment, we have counts X from one group and counts Y from another

Re: [R] Fw: R problem

2016-09-27 Thread John Kane
We have a "Do not help with homework" policy on R-help. We think that a student should speak with his or her instructor or tutor if help is needed. So you are unlikely to get much help here though it is possible. For future reference, 1. your script did not arrive. The data did. R-help is

Re: [R] OPeNDAP access / OPeNDAP subsetting with R

2016-09-27 Thread Roy Mendelssohn - NOAA Federal
Please post the code of what you tried, as I have no idea otherwise what did or did not work for you. -Roy > On Sep 27, 2016, at 12:44 PM, Debasish Pai Mazumder wrote: > > Hi Roy, > Thanks for your response. I have tried according your suggestion but it > doesn't work. >

Re: [R] Writing data onto xlsx file without cell formatting

2016-09-27 Thread Spencer Graves
I don't know if "openxlsx" will solve Christofer's problem, but it solved a problem I encountered recently reading a large data set: read.xls{gdata} read 20734 obs. of 141966 rows and stopped without warning. read.xls{fImport} and read_excel{readxl} both read 65536 rows. I couldn't

[R-es] Grupo de R de Madrid - Participación en evento SQLSaturday - Madrid 24-sep ... Material Disponible.

2016-09-27 Thread Carlos Ortega
Hola, Por si es de vuestro interés, el "Grupo de R de Madrid" participó en el evento SQLSaturdays organizado por Microsoft en Madrid el pasado sábado 24-sep. El tema de la presentación fue una variación sobre lo que presentamos en el último Meetup sobre las diferentes etapas, algoritmos y

Re: [R] OPeNDAP access / OPeNDAP subsetting with R

2016-09-27 Thread Debasish Pai Mazumder
Hi Roy, Thanks for your response. I have tried according your suggestion but it doesn't work. the OPeNDAP link of the data http://nomads.ncdc.noaa.gov/thredds/dodsC/modeldata/cfsv2_ forecast_ts_9mon/2014/201404/20140403/2014040312/ datafile: tmax.01.2014040312.daily.grb2 Thanks -Deb On Tue, Sep

Re: [R] Writing data onto xlsx file without cell formatting

2016-09-27 Thread Nordlund, Dan (DSHS/RDA)
Christofer, I do not really use the xlsx package, so this may not be the 'best' approach. And based on your spreadsheet, and the code that you supplied, I am not sure what you really intended. But here is some sample code that will update cells in your spreadsheet without changing the

Re: [R] OPeNDAP access / OPeNDAP subsetting with R

2016-09-27 Thread Roy Mendelssohn - NOAA Federal
Look at the package ncdf4. You can use an OPeNDAP URL in place of the file name to perform subsets., -Roy > On Sep 27, 2016, at 9:06 AM, Debasish Pai Mazumder wrote: > > Hi all, > > I would like to access and subset following OpeNDAP files. > server: >

Re: [R] Writing data onto xlsx file without cell formatting

2016-09-27 Thread Christofer Bogaso
Hi Daniel, Am attaching an example xlsx file which I need to modify. I have tried with below code : library(xlsx) Data = data.frame(1:20) wb <- loadWorkbook("asd.xlsx") ### Assume I saved asd.xlsx in the working directory addDataFrame(Data, sheet = getSheets(wb)[['Sheet1']], startRow=5,

[R] Researches about using R in economic educational purposes - ask for help / cooperation.

2016-09-27 Thread Mateusz Kopyt
Dear All, first of all I'd like to say hello to everybody because it is my first post on the list. I'm the academic teacher (Ph.D) at University of Warsaw, Faculty of Economic Sciences and I've been using R for a couple of years during my classes and in my scientific work. I'm not the only

[R] Fw: R problem

2016-09-27 Thread Elham Fakharizade via R-help
HelloI want to calculate sen slope with out using package. I wrote one but,  it is wrong. I attache my data and my script. would you please check it.Many thanksSincerely yoursElham 1.46 1.22 1.19 1 1.11 1.16 0.78 0.84 0.79 0.85 0.54 0.49 0.61 0.66

Re: [R] Testing significance of individual regression slopes

2016-09-27 Thread Bert Gunter
You can't if I understand correctly: there is no individual subject regression coefficient, only a variance component for a random subject intercept. Do you mean that you want to "test" whether that component is nonzero ?(It is, of course). If so, IIRC, lmer eschews such tests for technical

[R] OPeNDAP access / OPeNDAP subsetting with R

2016-09-27 Thread Debasish Pai Mazumder
Hi all, I would like to access and subset following OpeNDAP files. server: http://nomads.ncdc.noaa.gov/thredds/dodsC/modeldata/cfsv2_forecast_ts_9mon/2014/201404/20140403/2014040312/ file name: tmax.01.2014040312.daily.grb2

Re: [R] Fw: R problem

2016-09-27 Thread Bert Gunter
This list has a *no homework* policy. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue, Sep 27, 2016 at 7:18 AM, Elham Fakharizade via R-help

[R] Testing significance of individual regression slopes

2016-09-27 Thread Patzelt, Edward
Hi R-help, I have an lmer logistic regression with a within subjects IV and subject as a random factor: model <- lmer(optimal_choice ~ level_one_value_difference + (1|subid), data = dat) What I want is to test if the individual subject regression coefficient is significantly different from 0.

[R] Fw: R problem

2016-09-27 Thread Elham Fakharizade via R-help
HelloI am university student.I should do a R home work. That is writing sen slope code in R and calculate it with out using package. I wrote one but,  it is wrong. I attache my data and my script. would you please check it.Many thanksSincerely yoursElham 1.46 1.22 1.19 1 1.11 1.16

[R] Statistical Computing & Graphics Student Paper Competition 2017

2016-09-27 Thread Patrick Breheny
Statistical Computing and Statistical Graphics Sections American Statistical Association Student Paper Competition 2017 The Statistical Computing and Statistical Graphics Sections of the ASA are co-sponsoring a student paper competition on the topics of Statistical Computing and Statistical

Re: [R] Error in gam() object 'scat' no found

2016-09-27 Thread David Winsemius
> On Sep 26, 2016, at 9:50 PM, Karl Neergaard wrote: > > I received an error message while trying to use family=scat in the GAM > package. The models were working fine yesterday. > The problem is not with my data seeing as the gaussian distribution is > working fine. >

Re: [R] R-package (“SeCuredSurv”)

2016-09-27 Thread Thierry Onkelinx
Dear Anonymous, It's seems like that package never made it to CRAN. You should contact the package author or the author of the reference. Best regards, ir. Thierry Onkelinx Instituut voor natuur- en bosonderzoek / Research Institute for Nature and Forest team Biometrie & Kwaliteitszorg / team

Re: [R] R-package (“SeCuredSurv”)

2016-09-27 Thread Sarah Goslee
The only google hit appears to be that paper, which is a 2014 PhD dissertation, and states that the author will be uploading it on CRAN. Since that hasn't been done, the only thing you can do is try to track down the author and ask. Sarah On Tue, Sep 27, 2016 at 4:45 AM, stud1830153714

[R] R-package (“SeCuredSurv”)

2016-09-27 Thread stud1830153714
To whom it may concern I am MS student of Biostatistics. One of my thesis references is the article" High-Dimensional Variable Selection for Multivariate and Survival Data with Applications to Brain Imaging and Genetic Association Studies. "And in the article it mentions that they use the

Re: [R-es] Asignacion de colclasses

2016-09-27 Thread Luisfo via R-help-es
Hola C�sar, Aunque la respuesta de Carlos est� bien, date cuenta de que el error dice: scan() expected 'a real', got '13.060.496' Parece que tienes separadores de 'miles' en una columna, y R no traga con ellos, dado que espera un num�rico. Creo que tendr�s que hacer un preprocesado, o un

Re: [R] ggplot grouped barchart based on marginal proportions

2016-09-27 Thread Crump, Ron
Hi Paul, Do you want to avoid using prop.table(mtcars_xtab, 1) ? If not, how about: ggplot(as.data.frame(prop.table(mtcars_xtab, 1)))+ geom_bar(aes(x=Var2,y=Freq,fill=Var1), stat="identity", position="dodge")+ scale_fill_brewer(palette="Set2") Ron.

Re: [R] Using lapply in R data table

2016-09-27 Thread Frank S.
Many thanks Ista and Bert for your nice solutions! As Ista commented in a previous mail, the 0.87 value in my example is not fixed, but for each subject it depends on the difference "2007-01-01 - fini". However, both of your solutions take into account this fact. Frank S.

Re: [R] src/Makevars ignored ?

2016-09-27 Thread Martin Morgan
On 09/26/2016 07:46 AM, Eric Deveaud wrote: Hello, as far as I understood the R library generic compilation mechanism, compilation of C//C++ sources is controlde 1) at system level by the ocntentos RHOME/etc/Makeconf 2) at user level by the content of ~/.R/Makevars 3) at package level by

Re: [R-es] Variable Progresiva

2016-09-27 Thread Isidro Hidalgo Arellano
Va a ser que sí… XD De: gilbello...@gmail.com [mailto:gilbello...@gmail.com] En nombre de Carlos J. Gil Bellosta Enviado el: lunes, 26 de septiembre de 2016 19:27 Para: Rafael Saturno CC: Isidro Hidalgo Arellano ; R

Re: [R-es] ¿Cómo generar tabla apaisada salida PDF con RMarkdown?

2016-09-27 Thread Juan Abasolo
Muchas gracias, de momento lo dejo en Stand By y lo doy por resuelto. Pero me queda para el siguiente lío. or., 2016.eko iraren 23a 08:56(e)an, doblett igorleak idatzi zuen: > Hola Juan, > aunque un poco tarde te comento. Yo suelo trabajar con tablas grandes > sacando el codigo a latex

Re: [R-es] Error al buscar datos saltados

2016-09-27 Thread Carlos Ortega
Hola, El problema que tienes es en esta sentencia: ymd_hms(TEM$TIMESTAMP) No la estás asignando a nada. Lo suyo es que hagas algo así: TEM$myTimeStamp <- ymd_hms(TEM$TIMESTAMP) Y crees el intervalo (seq...) on esta nueva variable. El error que obtienes es que "TEM$TIMESTAMP" al leerla del

Re: [R-es] Asignacion de colclasses

2016-09-27 Thread Carlos Ortega
Hola, Al margen de la solución técnica a tu problema, me intriga un tanto el objetivo que persigues. Si tu objetivo es determinar las clases para luego optimizar la lectura, mi sugerencia es que si el fichero que quieres leer es muy grande, puedes utilizar la función "fread()" del paquete

Re: [R] Writing data onto xlsx file without cell formatting

2016-09-27 Thread Daniel Nordlund
On 9/26/2016 2:56 PM, Christofer Bogaso wrote: Hi again, I have been following above suggestion to export data from R to xlsx file using XLconnect. However recently I am facing Java memory allocation problem with large dataset (looks like a known issue with this package) and therefore decided

[R] Error in gam() object 'scat' no found

2016-09-27 Thread Karl Neergaard
I received an error message while trying to use family=scat in the GAM package. The models were working fine yesterday. The problem is not with my data seeing as the gaussian distribution is working fine. mod=gam(RT~s(a) + s(b), data=dat, family=gaussian) mod=gam(RT~s(a) + s(b), data=dat,