Re: [R-es] fechas NA

2016-08-30 Thread javier valdes
Estimados: Ayer tratè de usar openair, sin embargo, me durò poco el entusiasmo, ya que el primer paso, pasarlas fechas a fomato me arrojo un campo de NA, y la verdad es que ya no sè como resolver este problema, ya que lo he intentado de muchas formas. Mi fecha  es de la forma dd/mm/ yy.  Las

Re: [R] Loop over rda list files and using the attach function

2016-08-30 Thread Juan Ceccarelli Arias
The attach(get(yyz)) option i tried and it worked. The only issue, is that when i'm trying to export the results, it takes a lot of time. Considerably more than Stata. Also, the computer almost collapses for a task which isn't so exhausting for my PC station. Im dubious... On Tue, Aug 30, 2016

Re: [R] yuen function of the WRS2 package

2016-08-30 Thread William Dunlap via R-help
yuen does not work when there unused levels in the factors given to it. > yuen(GoalsGame ~ League, tr=0.2, data = SpainGer) Call: yuen(formula = GoalsGame ~ League, data = SpainGer, tr = 0.2) Test statistic: NaN (df = NA), p-value = NA Trimmed mean difference: NaN 95 percent confidence

Re: [R] yuen function of the WRS2 package

2016-08-30 Thread Bert Gunter
James: To be clear, I know nothing about this package, but the following may be helpful for those who do: 1. What exacty was the error message that you received? Or was it a warning? "cannot read" may be too vague to allow others to respond. 2. ?maintainer to find the package maintainer. It may

[R] yuen function of the WRS2 package

2016-08-30 Thread James Henson
Greetings R community, Here is a small but perplexing problem with the ‘yuen’ function in the ‘WRS2’ package. I begin with the ‘eurosoccer’ data frame from the ‘WRS2’ package. Then make a subset that contains only two Leagues Spain and Germany (subset data frame is ‘SpainGer’). The ‘yuen’

Re: [R] plot with different symbols and colors according to the factor levels

2016-08-30 Thread Paulo Moniz
Obter o Outlook para Android On Tue, Aug 30, 2016 at 2:41 PM -0300, "Clint Bowman" > wrote: Hanna, lili<-read.table("lili.txt",header=T) # don't forget to label the row number if it's in your data

Re: [R] loading .rda file

2016-08-30 Thread Leslie Rutkowski
Thanks, all, for your quick and comprehensive help with this - very much appreciated in my R journey. Leslie On Tue, Aug 30, 2016 at 8:03 PM, Jeff Newmiller wrote: > Thanks for the perspective, Martin. I personally feel like attaching to > the search path is more

Re: [R] 0 rows> (or 0-length row.names)

2016-08-30 Thread William Dunlap via R-help
You need to show what R expressions you ran before running into this problem, including calls to library() or require(). Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Aug 30, 2016 at 12:15 PM, Shivi Bhatia wrote: > Hi Mark, > What i understand, probably when i run

Re: [R] 0 rows> (or 0-length row.names)

2016-08-30 Thread Mark Sharp
Shivi, What package(s) are you using. What functions are you using. How are you calling the functions. A reproducible sample has all of the actual code needed to create a representative error. There are multiple packages you could be using to look at weight of evidence and information value.

Re: [R] 0 rows> (or 0-length row.names)

2016-08-30 Thread Shivi Bhatia
Hi Mark, What i understand, probably when i run the WOE & IV to check significant variables that is where i get this error. Thanks for your assistance Mark really appreciate i will look into some other measure on this. On Wed, Aug 31, 2016 at 12:35 AM, Mark Sharp wrote: >

Re: [R] 0 rows> (or 0-length row.names)

2016-08-30 Thread Mark Sharp
Shivi, It is likely that William knows what you are trying to do because of his considerable experience, but I am not able to figure it out from what you have written. You have apparently sent the output from something like dput(SFDC[1:50, ]), but I still do not know what you did to get the

Re: [R] plot with different symbols and colors according to the factor levels

2016-08-30 Thread Greg Snow
And you can specify the symbols and colors using code like: with(lili, plot(y,conc, pch= c(16,18,17)[sample], col=c('red','green','blue')[sample], log="y")) modifying to meet your data and preferences, of course. On Tue, Aug 30, 2016 at 11:48 AM, Clint Bowman wrote: > >

Re: [R] How to test existence of an environment and how to remove it (from within functions)?

2016-08-30 Thread Marius Hofert
Hi Duncan, ... I don't have to know (I thought). The idea was to set up the environment only for a single object x. If it (= the environment (see MWE 2) *or* the object (see MWE 1)) exists, it's the right one. But I agree that it's 'cleaner' to work with a hash -- yet I first wanted to understand

Re: [R] Loop over rda list files and using the attach function

2016-08-30 Thread ruipbarradas
Hello, Try attach(get(yyz)) Hope this helps, Rui Barradas Citando Juan Ceccarelli Arias : Hi. I need to loop over rda files. I generated the list of them. That's ok. The problem is that the name of the files are as _mm (eg 2010_01 is january or 2010, 2016_03 is

Re: [R] Loop over rda list files and using the attach function

2016-08-30 Thread Greg Snow
You can attach rda files directly with the attach function, no need to load them first (see the what argument in the help for attach). This may do what you want more directly. In general it is better to not use loops and attach for this kind of thing. It is better to store multiple data objects

Re: [R] loading .rda file

2016-08-30 Thread Jeff Newmiller
Thanks for the perspective, Martin. I personally feel like attaching to the search path is more confusing than being explicit, because it appears indistinguishable from namespace pollution yet for modifying data it creates copies in the current environment (in-place editing requires `<<-` which

Re: [R] Loop over rda list files and using the attach function

2016-08-30 Thread Jorge Cimentada
Here's the problem: when you load the object and name it yyz, its simply storing the name of the data frame as a string. Naturally, when you you attach the string, it throws an error. The loop actually loads the data frame but inside yyz there's not a data frame. One problem with load() is that

Re: [R] plot with different symbols and colors according to the factor levels

2016-08-30 Thread Clint Bowman
with(lili,plot(y,conc,pch=sample,col=sample,log="y")) gives a better plot Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu Department of Ecology VOICE: (360) 407-6815 PO Box 47600

Re: [R] plot with different symbols and colors according to the factor levels

2016-08-30 Thread Clint Bowman
Hanna, lili<-read.table("lili.txt",header=T) # don't forget to label the row number if it's in your data with(lili,plot(y,conc,pch=sample,col=sample)) Clint Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu

Re: [R] 0 rows> (or 0-length row.names)

2016-08-30 Thread Shivi Bhatia
Hi William/ Mark, I am using WOE & IV (weight of evidence) reduce the number of independent vars. I have read this data as a csv file. reproducible example for your reference please: structure(list(date = structure(c(6L, 6L, 6L, 6L, 6L, 6L, 14L, 14L, 14L, 14L, 14L, 14L, 14L, 14L, 14L, 14L, 14L,

Re: [R] loading .rda file

2016-08-30 Thread Martin Maechler
> Jeff Newmiller > on Tue, 30 Aug 2016 09:36:05 -0700 writes: > You cannot. However, you can load the file into a dedicated environment to keep those names separated from your global environment. e.g. [1] yes, that's my "famous" only-allowed use of

Re: [R] 0 rows> (or 0-length row.names)

2016-08-30 Thread William Dunlap via R-help
You did not say what operation gave you the error. I can get that message (which is not an "error") if I print an illegally constructed data.frame, one without the row.names attribute. > illegalDF <- structure(class="data.frame", list(ColumnA = 1:3)) > illegalDF [1] ColumnA <0 rows> (or 0-length

Re: [R] 0 rows> (or 0-length row.names)

2016-08-30 Thread Mark Sharp
Shivi, Can you show the code that throws the error? <0 rows> (or 0-length row.names) Of course as always a reproducible sample would be great. Perhaps you can make a small subset of the data and use dput() to provide a defined object. R. Mark Sharp, Ph.D. Director of Primate Records Database

[R] [R-pkgs] new package: rpostgis

2016-08-30 Thread David Bucklin
We'd like to announce the initial CRAN release of 'rpostgis' (v1.0.0), which facilitates transfer between PostGIS "Geometry" objects (stored in PostgreSQL databases) and R spatial objects. The package also contains a variety of convenience functions which are supplemental to the excellent

[R] Adding multiple polygons to a Leaflet map

2016-08-30 Thread Kevin Haynes
Hi everyone - I'd like to add multiple polygons to a leaflet map. I don't get any errors when running this code, but it'll only display the second choro layer - the citizenship rate one. Here's my code below. Any thoughts? Here's the map right now:http://rpubs.com/khaynes17/205217 #map

[R] [R-pkgs] The modification in PSF Package

2016-08-30 Thread Neeraj Dhanraj
Dear Researchers, Have a look over updated *R package PSF*. Pattern Sequence Based Forecasting (PSF) takes univariate time series data as input and assist to forecast its future values. This algorithm forecasts the behavior of time series based on similarity of pattern sequences. Initially,

[R] plot with different symbols and colors according to the factor levels

2016-08-30 Thread li li
Hi all, I have the following data. I want to plot the data (y ~ conc) with different symbols and colors corresponding to different levels of the factor sample. I could create a column with color and pch and then do the plot, but I am sure there are much better ways. Can anyone make suggestions?

Re: [R] 0 rows> (or 0-length row.names)

2016-08-30 Thread Shivi Bhatia
Hi Mark, It gives me num [1:5083]. I have used head also to see first 10 obs: head(SFDC$case_age,10) [1] 24.84 0.05 13.38 0.15 11.11 4.16 8.13 0.07 3.61 0.00 Thanks. On Tue, Aug 30, 2016 at 10:05 PM, Mark Sharp wrote: > What do you get from > str(SFDC$case_age) >

Re: [R] loading .rda file

2016-08-30 Thread Jeff Newmiller
You cannot. However, you can load the file into a dedicated environment to keep those names separated from your global environment. e.g. [1] The saveRDS/loadRDS functions are an alternative handle one object at a time without dragging the object names into the picture (you have to name the

Re: [R] 0 rows> (or 0-length row.names)

2016-08-30 Thread Mark Sharp
What do you get from str(SFDC$case_age) Mark R. Mark Sharp, Ph.D. Director of Primate Records Database Southwest National Primate Research Center Texas Biomedical Research Institute P.O. Box 760549 San Antonio, TX 78245-0549 Telephone: (210)258-9476 e-mail: msh...@txbiomed.org > On Aug

[R] 0 rows> (or 0-length row.names)

2016-08-30 Thread Shivi Bhatia
I know this question has been asked zillion times but even after consulting Stack Overflow & other forum cant figure out the reason. I have one var in my data-set names case age. This variable is numeric as: class(SFDC$case_age) *numeric* however it throws this error: <0 rows> (or 0-length

Re: [R] loading .rda file

2016-08-30 Thread Robert Baer
I think that the .rda extension is the old extension convention for what now gets the .RData extension name by convention. These are basically workspaces. These .RData files can contain multiple data objects, and all objects seem to read back in with the same name that they were saved with

[R] Loop over rda list files and using the attach function

2016-08-30 Thread Juan Ceccarelli Arias
Hi. I need to loop over rda files. I generated the list of them. That's ok. The problem is that the name of the files are as _mm (eg 2010_01 is january or 2010, 2016_03 is march of 2016). So, when i try to use the attach function to create a simple table(age, sex) it fails. The only way to

[R] loading .rda file

2016-08-30 Thread Leslie Rutkowski
Hi, I'm slowly migrating from SAS to R and - for the very first time - I'm working with a native .Rda data file (rather than importing data from other sources). When I load this .Rda file into the global environment using load("file path") I see a data.frame in the global environment called

Re: [R] Second order stochastic dominance test

2016-08-30 Thread John Kane
google R package test the second order stochastic dominance of two curves John Kane Kingston ON Canada > -Original Message- > From: zoraze...@gmail.com > Sent: Tue, 30 Aug 2016 11:31:09 +0200 > To: r-help@r-project.org > Subject: [R] Second order stochastic dominance test > > Hi all, >

[R] plot.drm in "drc" package

2016-08-30 Thread li li
Hi all, I am trying to use the drc package to fit 4L curve. I am so confused about the plot.drm function in the drc package. Particularly, I am confused about the scale of the xaxis in the plots generated using the plot.drm function. See the example below: ## generate data and fit the model

[R] Second order stochastic dominance test

2016-08-30 Thread Zoraze Ali
Hi all, Is there any R package which could help me to test the second order stochastic dominance of two curves? Thanks in advance for the help. Kind regards, Zoraze [[alternative HTML version deleted]] __ R-help@r-project.org mailing list --

Re: [R] Exponential population model

2016-08-30 Thread David Winsemius
> On Aug 29, 2016, at 7:06 AM, Msindai, Nadejda wrote: > > Dear David > > I think you misunderstood me, I need to find the name for an r package that > models the population size from time 0 for a group of animals. > > I provided details to make it clearer the type

Re: [R-es] encontrar fechas saltadas

2016-08-30 Thread Carlos Ortega
Hola, Usé "textConnection" para poder utilizar tus propios datos y leerlos con read.table. En tu caso, si tienes los datos en un .csv, simplemente tienes que leerlos con read.table y utilizar la parte que sigue a "library(lubridate)" en el código que compartí ayer: coger la columna de fechas,

Re: [R] How to connect Microsoft Sql server from R studio using freeTDS instead of RODBC package

2016-08-30 Thread Mark Sharp
Manu, As far as I can tell you have not taken the advice from Wim Jansen, who gave you guidance on how to specify the freetds driver in your connection function. I do not think you need the unixodbc. In my experience having too much is as bad as not having enough. R. Mark Sharp, Ph.D.

Re: [R-es] encontrar fechas saltadas

2016-08-30 Thread Javier Valdes Cantallopts (DGA)
SIGO CON EL PROBLEMA con “lubridate” después de reiniciar y reinstalar Al hacer “EL TEXTCONNECTION” no reconoce ningún campo. 1] date hour T <0 rows> (or 0-length row.names) > De: Carlos Ortega [mailto:c...@qualityexcellence.es] Enviado el: martes, 30 de agosto de 2016 10:13 Para: Javier

Re: [R-es] encontrar fechas saltadas

2016-08-30 Thread Carlos Ortega
Hola, Vuelve a instalar el paquete "lubridate" y nos dices si sigues con el problema. Saludos, Carlos Ortega www.qualityexcellence.es El 30 de agosto de 2016, 14:53, Javier Valdes Cantallopts (DGA) < javier.val...@mop.gov.cl> escribió: > Hola Carlos y a todos los miembros. > > Al llamar a

Re: [R] How to connect Microsoft Sql server from R studio using freeTDS instead of RODBC package

2016-08-30 Thread Manohar Reddy
Hi Mark, Thanks,as per your suggestion and based on below link, I’m trying to connect my remote server but while connecting I have encountered attached error, can you please look in that and help out me. Link : https://groups.google.com/forum/#!topic/shinyapps-users/hs4bQHsk9JU Note

Re: [R-es] encontrar fechas saltadas

2016-08-30 Thread Javier Valdes Cantallopts (DGA)
Además me sale este error al llamar la tabla principal… [cid:image001.jpg@01D202A6.4D34AC50] De: Carlos Ortega [mailto:c...@qualityexcellence.es] Enviado el: lunes, 29 de agosto de 2016 20:31 Para: Javier Valdes Cantallopts (DGA) CC: r-help-es@r-project.org Asunto: Re: [R-es] encontrar fechas

Re: [R-es] encontrar fechas saltadas

2016-08-30 Thread Javier Valdes Cantallopts (DGA)
Hola Carlos y a todos los miembros. Al llamar a “lubridate” me encontré con el siguiente problema: 1] date hour T <0 rows> (or 0-length row.names) Error in fetch(key) : lazy-load database 'C:/Program Files/R/R-3.3.1/library/lubridate/help/lubridate.rdb' is corrupt In addition: Warning message:

Re: [R-es] encontrar fechas saltadas

2016-08-30 Thread Javier Valdes Cantallopts (DGA)
Gracias Carlos, me sirvío comenzaré a trabajar con ello. De: Carlos Ortega [mailto:c...@qualityexcellence.es] Enviado el: lunes, 29 de agosto de 2016 20:31 Para: Javier Valdes Cantallopts (DGA) CC: r-help-es@r-project.org Asunto: Re: [R-es] encontrar fechas saltadas ​Hola, "setdiff()"

Re: [R-es] igraph obtener algunos

2016-08-30 Thread javier.ruben.marcuzzi
Estimados Pude resolver el problema, por decirlo de alguna manera, aumenté el número de columnas, aunque la información es la misma, algo hace que la búsqueda tenga una falla, puede ser por la forma en que preparé los datos, a la vista humana y en la exploración de los mismos desde igraph no

Re: [R] Exponential population model

2016-08-30 Thread lesnoff
Dear Josephine I think you may easily build such a model with the mmage package available at http://livtools.cirad.fr/mmage Best Regards Matthieu On 29/08/2016 16:06, Msindai, Nadejda wrote: Dear David I think you misunderstood me, I need to find the name for an r package that models the