[R] Prevent a table from crossing page boundary using rmarkdown/pandoc

2016-11-02 Thread MacQueen, Don
I'm using rmarkdown::render, which executes pandoc, to create a fairly simple document, and I would like to prevent tables from breaking across pages. I've been doing some web-searching but haven't found a solution. In my report's context, the table is so short that breaking it across pages looks

[R] Number of used observations in stats::arima with NAs

2016-11-02 Thread Javier López-de-Lacalle via R-help
When missing observations (NAs) are present in the data and the regular or differencing filters are applied in stats::arima, the number of used observations (nobs) reported by nobs() is bigger than the actual number of non-NA observations. This value is used to compute the covariance matrix of

[R] svyglm in the survey package: large regression models with replicate weights give infinite standard errors

2016-11-02 Thread Adam C Sales
I'm running some regressions on data from the American Community Survey, with replicate weights for variance estimation, using the svyglm function from the survey package. For my larger regressions, all of the standard errors were reported as Inf. I did a bit of digging through the code, and

Re: [R] Filtering out rows

2016-11-02 Thread Bert Gunter
If I understand correctly, this is merely a matter of subscripting, which is a basic and essential R operation. If you aren't familiar with subscripting, stop and go through one of the many R web tutorials that covers this before proceeding. See also ?subset for a simpler but not quite so

Re: [R] Filtering out rows

2016-11-02 Thread David Winsemius
> On Nov 2, 2016, at 9:48 AM, Bryan Mac wrote: > > Hi, > > I am looking to filter out rows in my data set, run my analysis and > then removing the filter. Here is my regression. I would like to > filter out a row. For example, I would like to filter out a row, >

[R] Filtering out rows

2016-11-02 Thread Bryan Mac
Hi, I am looking to filter out rows in my data set, run my analysis and then removing the filter. Here is my regression. I would like to filter out a row. For example, I would like to filter out a row, "Case"=1511. npi=lm(npi_mvmt~cnavgpi,data=df) summary(npi) resid.vs.fitt.LS%

[R] Forging an R enthusiast meeting at EGU 2017

2016-11-02 Thread Leo Leo via R-help
At the European Geosciences Union Meeting (Spring 2017 in Vienna) there will be an interactive sessionthat aims to bring together scientists that share a common indispensable tool: the statistic software R. http://meetingorganizer.copernicus.org/EGU2017/session/24971 We have the feeling that R

[R] MaxentVariableSelection problem

2016-11-02 Thread Anderson Eduardo
Hello I am trying to run vignette example for the MaxentVariableSelection package, but something wrong is happening. I can't figure out. Here is the code: maxentPath =

Re: [R] Adding a column to an **empty** data.frame

2016-11-02 Thread Emmanuel Levy
Dear Bill, Thanks a lot this is what I was looking for. Emmanuel On 2 November 2016 at 15:59, William Dunlap wrote: > Give your new column a vector type - NULL cannot be extended beyond length > 0. Also, the syntax df$col<-NULL means to remove 'col' from 'df'. > > > df <-

Re: [R] Adding a column to an **empty** data.frame

2016-11-02 Thread S Ellison
> Now, how can I add a third column name to that empty df? You could use functions that generate zero-length objects. Examples: df$newv <- vector(mode="numeric") #logical by default, so <-vector() would give you a zero-length logical df$newi <- integer() df$newf <- factor() S Ellison

Re: [R] Adding a column to an **empty** data.frame

2016-11-02 Thread PIKAL Petr
Hi data frames are structures which need to have the same length of all variables. So if you have 0 length variables you need to add also 0 length vectors > df$aa<-numeric(length=0) > df [1] id data aa <0 rows> (or 0-length row.names) > df$bb<-character(length=0) > df [1] id data aa bb <0

[R] Adding a column to an **empty** data.frame

2016-11-02 Thread Emmanuel Levy
Dear All, This sounds simple but can't figure out a good way to do it. Let's say that I have an empty data frame "df": ## creates the df df = data.frame( id=1, data=2) ## empties the df, perhaps there is a more elegant way to create an empty df? df = df[-c(1),] > df [1] id data <0 rows> (or

Re: [R] Adding a column to an **empty** data.frame

2016-11-02 Thread William Dunlap via R-help
Give your new column a vector type - NULL cannot be extended beyond length 0. Also, the syntax df$col<-NULL means to remove 'col' from 'df'. > df <- data.frame(id=integer(0), data=numeric(0)) > df$new.col <- character(0) > str(df) 'data.frame': 0 obs. of 3 variables: $ id : int $ data

Re: [R-es] Modelo mixto en R

2016-11-02 Thread javier.ruben.marcuzzi
Estimados No estoy siguiendo el hilo de la conversación, pero por tratamiento, parcela, repetido, modelo mixto, puedo suponer que tendría algo de actividad agropecuaria, o semejante, al respecto hay ejemplos en https://cran.r-project.org/web/packages/agricolae/agricolae.pdf Javier Rubén

Re: [R-es] Modelo mixto en R

2016-11-02 Thread Manuel Spínola
Exacto, no tienen características particulares. Manuel El 2 de noviembre de 2016, 4:23, Olivier Nuñez escribió: > Una ultima pregunta: > supongo que las subparcelas A, B, C y D no tienen caracteristicas > particulares. > Es decir, que las letras A,B,C y D no se refieren por

Re: [R] point in polygon dataframe data

2016-11-02 Thread PIKAL Petr
Hi There are plenty of options https://stat.ethz.ch/R-manual/R-devel/library/mgcv/html/in.out.html http://www.dpi.inpe.br/gilberto/tutorials/software/R-contrib/sp/html/point.in.polygon.html http://finzi.psych.upenn.edu/library/DescTools/html/PtInPoly.html did you try any of them? Cheers Petr >

[R] point in polygon dataframe data

2016-11-02 Thread Indhira, Anusha
Hi , I have polygon vertices as given below ft_num dv_ft dp30_mn_phase dv_n2 p30_mn_phase tgt_mn_phase n2_binfuel_mnepr_mn min_dp30_mnp 19 28 zero-gradient -0.0006680832 transient 34.76701 493.6494 g75 304.56411 0.9593899 -0.0006680832 18 28

Re: [R-es] Modelo mixto en R

2016-11-02 Thread Olivier Nuñez
Bueno, dando por hecho lo anterior, tu modelo me parece corecto para contestar a la pregunta que planteas. Sin embargo, es posible que experimentes problemas de convergencia con estos datos. Te aconsejo tipificar la variable "colecta": datos$colecta=scale(datos$colecta) Un saludo.

Re: [R-es] Apis geocodificadoras además de Google Maps

2016-11-02 Thread Francisco Rodriguez Sanchez
Hola Claudia, otras opciones: https://cran.rstudio.com/web/packages/geocodeHERE/ https://cran.rstudio.com/web/packages/opencage/ https://cran.rstudio.com/web/packages/geoparser/index.html Suerte, Paco El 01/11/2016 a las 12:42, Claudia Guerrero escribió: Buenos días, Quiero comparar la

Re: [R] Updated package: survival_2.40-1

2016-11-02 Thread peter dalgaard
On 01 Nov 2016, at 23:47 , Therneau, Terry M., Ph.D. wrote: > As a final footnote, the simple data set above also gives different results > when coded in SAS: I am not alone in overlooking it. As a consequence, the > maintainer expects to get new emails that ``we have