Re: [R] Closed list?

2016-09-29 Thread Mark Leeds
my bad david. thanks for info. On Fri, Sep 30, 2016 at 12:37 AM, David Winsemius wrote: > > > On Sep 29, 2016, at 8:57 PM, Mark Leeds wrote: > > > > someone who moderates the list, myself included, may have mistakened it > for > > spam and rejected

Re: [R] Closed list?

2016-09-29 Thread David Winsemius
> On Sep 29, 2016, at 8:57 PM, Mark Leeds wrote: > > someone who moderates the list, myself included, may have mistakened it for > spam and rejected it. In that case, it never got to the list. > I think the post was accepted and the poster just doesn't realize it:

Re: [R] Replacing value with "1"

2016-09-29 Thread Richard M. Heiberger
I got the matrix time down by another factor of 4 tmp <- matrix(c(0,0,1,0,0, NA,0,1,1,0, 0,1,0,0,NA, 1,0,1,0,1), ## last item in row has value 1 byrow=TRUE, 4, 5) ## Jeff matrix DF2 <- DF <- tmp DF2[ , -1 ] <- ifelse( !is.na( DF[ ,

Re: [R] Closed list?

2016-09-29 Thread Mark Leeds
someone who moderates the list, myself included, may have mistakened it for spam and rejected it. In that case, it never got to the list. On Thu, Sep 29, 2016 at 4:53 PM, Duncan Murdoch wrote: > On 29/09/2016 2:38 PM, Joysn71 wrote: > >> Hello, >> >> a few weeks ago

Re: [R] remove a "corrupted file" after using download.file() with R on Windows 7

2016-09-29 Thread Henrik Bengtsson
1. It could be that a virus checker locks the file. 2. There are Windows software tools that identify which process locks a particular file, e.g. LockHunter (http://lockhunter.com/). Those should help you figure out what's going on. 3. R.utils::downloadFile() tries it's best to download files

[R] How to integrate UMLS to opennlp or NLP package in R

2016-09-29 Thread SH.Chou
Hi, I am trying to use R's opennlp package with UMLS (Unified Medical Language System, https://www.nlm.nih.gov/research/umls/) to analyze physician's notes, but I couldn't find any hint from Google. Any idea how I can achieve this goal or any tutorials/books/websites I missed? Thanks!

Re: [R] Opening or activating a URL to access data, alternative to browseURL

2016-09-29 Thread Bob Rudis
The rvest/httr/curl trio can do the cookie management pretty well. Make the initial connection via rvest::html_session() and then hopefully be able to use other rvest function calls, but curl and httr calls will use the cached in-memory handle info seamlessly. You'd need to store and retrieve

Re: [R] Opening or activating a URL to access data, alternative to browseURL

2016-09-29 Thread Duncan Murdoch
On 29/09/2016 3:29 PM, Ryan Utz wrote: Hi all, I've got a situation that involves activating a URL so that a link to some data becomes available for download. I can easily use 'browseURL' to do so, but I'm hoping to make this batch-process-able, and I would prefer to not have 100s of browser

Re: [R] Closed list?

2016-09-29 Thread Duncan Murdoch
On 29/09/2016 2:38 PM, Joysn71 wrote: Hello, a few weeks ago i subscribed to this list and afterwards i send a question. I got a reply that my post needs moderator approval. It never happened. Then i wrote to the list owners address. No reply. How can i proceed? I see a post from you with

Re: [R] Architect from Open Analytics

2016-09-29 Thread David Winsemius
Your message with a subject heading of "Architect from Open Analytics" appeared on the list on Sept 10. As far as I can tell it got no replies.) If there was another posting, then you need to submit details sufficient to investigate. All postings by first time posters get moderated. If you use

Re: [R] Optimization issue - Solution converges for any initial value

2016-09-29 Thread ProfJCNash
I haven't tried running your code, but a quick read suggests you should 1) set up the input data so your code can be run with source() without any preprocessing. 2) compute the function for several sets of parameters to make sure it is correct. Maybe create a very simple test case you can more

Re: [R-es] Determinar Frecuencia

2016-09-29 Thread Carlos Ortega
Hola, Yo revisaría nuevamente las estructuras básicas de R: vectores, listas, matrices, funciones... Ahí es donde aparecen estos conceptos explicados claramente. Y sobre qué libros utilizaría pues tienes varias opciones: Pues de pago, diria estos: -

[R] Optimization issue - Solution converges for any initial value

2016-09-29 Thread Narendra Modi
I have put together a R snippet wherein I am trying to get optimum values for which error is minimized. The error is the difference between two matrices. Every time I run the below code, I don't see any optimization happening as in the final answer is the same as the initial estimate regardless of

Re: [R] remove a "corrupted file" after using download.file() with R on Windows 7

2016-09-29 Thread Robert Baer
On 9/28/2016 11:32 PM, Fabien Tarrade wrote: Hi there, Sometime download.file() failed to download the file and I would like to remove the correspond file. No answers, but a couple of additional questions: 1) Does the issue persist if you close R or does the file remain locked against

[R] Opening or activating a URL to access data, alternative to browseURL

2016-09-29 Thread Ryan Utz
Hi all, I've got a situation that involves activating a URL so that a link to some data becomes available for download. I can easily use 'browseURL' to do so, but I'm hoping to make this batch-process-able, and I would prefer to not have 100s of browser windows open when I go to download multiple

[R-es] Determinar Frecuencia

2016-09-29 Thread Manuel Máquez
Carlos, muchas gracias nuevamente por la rapidez de tu respuesta, ya funcionó el código que tenía. Mi error partía de que habiendo usado previamente corchetes en la definición del grupo, era necesario conservarlos, una estupi..., que no volveré a cometer. ¿Qué documento debo consultar para saber

Re: [R] Bootstrapping in R

2016-09-29 Thread ruipbarradas
Hello, Read the help page ?boot::boot. For instance, try the following. library(boot) x <- rnorm(100) stat <- function(x, f) mean(x[f]) boot(x, stat, R = 100) Hope this helps, Rui Barradas Citando bryan.mac24 : Hi all, I am wondering how to conduct bootstrapping

[R] plotting varclus( ) results

2016-09-29 Thread David Paul
Hello, I am running R on a Win7 operating system. Many thanks in advance for any help. I am using >library(Hmisc) >library(rms) >varclus.out <- varclus(~.,data=temp.df, sim = 'hoeffding') >plot(varclus.out) to generate a plot suitable for feature space dimension reduction. Is

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

2016-09-29 Thread Greg Snow
It is usually best to keep these discussions on the list. Someone else may have a better answer than mine, or be able to respond quicker, and if I answer on R-help then it is community service/involvement. If I respond directly then it is consulting and then we need a contract and I have to

Re: [R] Closed list?

2016-09-29 Thread Mark Sharp
Its not closed. Have you read the posting guide? Mark R. Mark Sharp, Ph.D. msh...@txbiomed.org On Sep 29, 2016, at 1:38 PM, Joysn71 > wrote: Hello, a few weeks ago i subscribed to this list and afterwards i send a

[R] Bootstrapping in R

2016-09-29 Thread bryan.mac24
Hi all, I am wondering how to conduct bootstrapping in R. I need bootstrap 100 times. The trick I need to figure out is how to do get a random sample of 100 out of the total number of case. Best, BM [[alternative HTML version deleted]] __

Re: [R-es] Determinar Frecuencia

2016-09-29 Thread Carlos Ortega
Hola, Estás cometiendo un error a la hora de utilizar la función "length". Lo estás usando con *corchetes*, cuando debieras de utilizarlo con *paréntesis*. Es una función. Usando tus propios datos: > length[do$d] Error in length[do$d] : objeto de tipo 'builtin' no es subconjunto > length(do$d)

[R] Closed list?

2016-09-29 Thread Joysn71
Hello, a few weeks ago i subscribed to this list and afterwards i send a question. I got a reply that my post needs moderator approval. It never happened. Then i wrote to the list owners address. No reply.  How can i proceed? Thanks in advance, Joysn

[R-es] Determinar Frecuencia

2016-09-29 Thread Manuel Máquez
Me debo explicar, tengo el siguiente script: library(ggplot2) da <- read.csv('T20.csv') un <- da[da[,2] == 1,] do <- da[da[,2] == 2,] tr <- da[da[,2] == 3,] cu <- da[da[,2] == 4,] ci <- da[da[,2] == 5,] se <- da[da[,2] == 6,] si <- da[da[,2] == 7,] if (length[un$d] >= 8) {sua1 <- loess(d ~ n, data

Re: [R] R_LIBS_SITE in Renviron ignored (?)

2016-09-29 Thread Sebastian Schubert
Hi all, On 23.09.2016 11:25, Sebastian Schubert wrote: ... > Maybe I get the documentation wrong but it seems, the variable > R_LIBS_SITE in Renviron is ignored while, for example, R_LIBS_USER is > not. ... For reference, I got a hint here: http://stackoverflow.com/a/39766163/1463740 I tried

Re: [R] using read.csv2()

2016-09-29 Thread ruipbarradas
Hello, No one mentioned that read.csv2 and read.csv are particular cases of read.table. read.table(text = " var1;var2;var3 TI;1995;4.5 VD;1990;4.8 FR;1994;3.9 VS;1993;5.1 FR;1995;4.7 FR;1992;5.8 ", header = TRUE, sep = ";", dec = ".") -> don str(don) Rui Barradas Citando Nordlund, Dan

Re: [R] using read.csv2()

2016-09-29 Thread Nordlund, Dan (DSHS/RDA)
Or, you can just use read.csv with sep=';' read.csv("test.csv", sep=';') -> don Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services > -Original Message- > From: R-help

Re: [R-es] Determinar frecuencia

2016-09-29 Thread javier.ruben.marcuzzi
Estimado Manuel Máquez ¿Puede usted hacer un modelo reproducible en R? Hay partes de su correo que no se comprenden, por ejemplo usted escribe [tr$d], pero en los datos está tr <- da …., por otro lado si miro un ejemplo como http://research.stowers-institute.org/efg/R/Statistics/loess.htm no

Re: [R] using read.csv2()

2016-09-29 Thread Alain Guillet
Hello, The defaults in read.csv2 are ";" as the separator and "," as the decimal symbol. It seems that the file you import is not a true csv since it mixes up two norms. You can solve your problem in defining the dec option equals to ".": read.csv2("test.csv",dec=".")->don Alain On

[R-es] Fwd: empezamos nuevo curso en SevillaR

2016-09-29 Thread Francisco Rodriguez Sanchez
¡Hola! Empezamos nuevo curso en SevillaR , el grupo local de usuarios del lenguaje y programa estadístico R en Sevilla. Este curso nos reuniremos el primer martes de cada mes a las 20 h en el Bulebar

Re: [R] Efficient means to link two data frames

2016-09-29 Thread Ben Tupper
Hi, I have a solution based upon findInterval() which depends upon the ordered nature of the 'Day' column. I can't speak to whether or not it is efficient but it is handy. I love the findInterval() function but have often wished it works with look up tables in descending order. This

Re: [R-es] Gráfico de intervalos de confianza

2016-09-29 Thread Francisco Rodriguez Sanchez
Hola H�ctor, Una forma sencilla es usar la funci�n error.bars del paquete psych (https://www.rdocumentation.org/packages/psych/versions/1.6.9/topics/error.bars). Otras opciones: http://stackoverflow.com/a/14069837 Suerte Paco El 29/09/2016 a las 11:53, "Hector G�mez Fuerte" escribi�: >

[R] Efficient means to link two data frames

2016-09-29 Thread Dennis Fisher
R 3.3.1 OS X Colleagues, I have two large data frames that I am trying to link efficiently. A small example is as follows: structure(list(Day = c(1L, 2L, 3L, 5L, 6L, 7L, 8L, 9L, 10L, 11L, 13L, 14L, 16L, 17L, 18L, 19L, 20L, 21L, 22L, 23L, 24L, 25L, 26L, 27L, 28L, 29L, 30L), Value = c(76,

Re: [R] using read.csv2()

2016-09-29 Thread Peter Dalgaard
> On 29 Sep 2016, at 11:40 , Duncan Murdoch wrote: > > > It's a "factor". read.csv2() defaults to a decimal separator of "," rather > than ".", so the last column doesn't look like numbers, and they're being > read as character strings, and then automatically

[R-es] Gráfico de intervalos de confianza

2016-09-29 Thread Hector Gómez Fuerte
Buenos días, tengo una variable de tipo continuo que depende de un factor con 7 niveles. Quisiera dibujar en un mismo gráfico intervalos de confianza ordinarios (no simultáneos) de la media de la variable para cada nivel del factor. ¿Puede indicarme alguien alguna forma sencilla de hacerlo?

Re: [R] using read.csv2()

2016-09-29 Thread Duncan Murdoch
On 29/09/2016 4:59 AM, Voirin Pascale wrote: Hello, I have a problem with the variable type defined by reading a csv file with read.csv2. Here is a test file saved as < test.csv > : var1;var2;var3 TI;1995;4.5 VD;1990;4.8 FR;1994;3.9 VS;1993;5.1 FR;1995;4.7 FR;1992;5.8 That I read in R with

Re: [R] using read.csv2()

2016-09-29 Thread Rainer M Krug
Voirin Pascale writes: > Hello, > > I have a problem with the variable type defined by reading a csv file with > read.csv2. > > Here is a test file saved as < test.csv > : > var1;var2;var3 > TI;1995;4.5 > VD;1990;4.8 > FR;1994;3.9 > VS;1993;5.1 > FR;1995;4.7 >

[R] using read.csv2()

2016-09-29 Thread Voirin Pascale
Hello, I have a problem with the variable type defined by reading a csv file with read.csv2. Here is a test file saved as < test.csv > : var1;var2;var3 TI;1995;4.5 VD;1990;4.8 FR;1994;3.9 VS;1993;5.1 FR;1995;4.7 FR;1992;5.8 That I read in R with : read.csv2("test.csv")->don;don don$var3 ##

[R-es] Determinar frecuencia

2016-09-29 Thread Manuel Máquez
Buenos días colegas, he estado buscando la manera de almacenar la frecuencia de ocurrencia de 'un', 'do', 'tr' 'cu' ... en el siguiente script: da <- read.csv('T20.csv') un <- da[da[,2] == 1,] do <- da[da[,2] == 2,] tr <- da[da[,2] == 3,] cu <- da[da[,2] == 4,] ci <- da[da[,2] == 5,] se <-