Re: [R-es] read.table con .csv separado por "|"

2017-01-18 Thread Carlos Ortega
¿Qué versión usas de data.table?. Yo tengo la 1.10.0... creo que es la última... Saludos, Carlos Otega www.qualityexcellence.es El 19 de enero de 2017, 1:30, Mauricio Monsalvo escribió: > No le gustó: > Error in fread("datos.csv", sep = "|", header = TRUE, quote = "") : >

Re: [R] non-parametric manova with post-hoc test

2017-01-18 Thread michael.eisenring
Dear Brian, Thank you for your answer. Another thing that came to my mind: Would it be possible just to separately rank-transform my 3 dependent variables and then to conduct a normal MANOVA on this data? Thanks, Mike Eisenring Michael, Msc. PhD Student Federal Department of Economic

[R] grepRaw() not matching fixed pattern at the tail

2017-01-18 Thread yui nishizawa
Hello This is my first time posting a question. I am having trouble getting grepRaw() to match a fixed pattern at the tail of a raw vector. Here is an example: # Returns integer(0), expected 2. grepRaw(pattern = charToRaw('abcd'), x = charToRaw('0abcd'), fixed=T) # Consequently, the pattern

Re: [R] Superscript in graph text

2017-01-18 Thread Jake William Andrae
Thank you, your suggestions are very helpful. As I said, I'm a novice to R and this list, and it's hard for me to decipher exactly what is required; I was really hoping for some basic script formatting guidance (which was given and appreciated). Jake Andrae PhD Candidate Geology & Geophysics

Re: [R] PCA in Q- and R-modes

2017-01-18 Thread Bert Gunter
Off topic for this list. Post on stats.stackexchange.com or similar for statistics questions. Post on Bioconductor list for biology-related (e.g. proteomics) data anaysis questions. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking

Re: [R] Superscript in graph text

2017-01-18 Thread Richard M. Heiberger
x <- 10 plot(1:10, main=bquote(R^2 * "=" * .(x))) On Wed, Jan 18, 2017 at 8:00 PM, Richard M. Heiberger wrote: > ?plotmath > > > plot(1:10, main=expression(R^2)) > > plot(1:10, main=bquote(R^2 * "=" * .(x))) > > On Wed, Jan 18, 2017 at 7:44 PM, Jake William Andrae >

Re: [R] Superscript in graph text

2017-01-18 Thread Richard M. Heiberger
?plotmath plot(1:10, main=expression(R^2)) plot(1:10, main=bquote(R^2 * "=" * .(x))) On Wed, Jan 18, 2017 at 7:44 PM, Jake William Andrae wrote: > Hello, > > > I've added some statistical information as text to some graphs, but I'm > having a really hard time

Re: [R] Superscript in graph text

2017-01-18 Thread Bert Gunter
?plotmath Yes, you will have to put in some effort if you want to use these sorts of latex-like math expressions as labels in your graphs. 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

[R] Superscript in graph text

2017-01-18 Thread Jake William Andrae
Hello, I've added some statistical information as text to some graphs, but I'm having a really hard time making the 2 in the R2 label superscript. Does anyone have any suggestions? mtext(paste("R2 = ", R2), adj=0, line=1, col="black", cex=0.7) Kind regards Jake Andrae PhD Candidate

Re: [R-es] read.table con .csv separado por "|"

2017-01-18 Thread Carlos Ortega
Hola, Prueba con esto: fread("datos.csv", sep = "|", header = TRUE, quote="") Con el parámetro quote, ignora las comillas del principio. No elimina todas, pero te permite cargar el conjunto sin problemas. Una vez cargado, ya puedes limpiar las columnas, quitando las comillas adicionales, etc...

[R-es] read.table con .csv separado por "|"

2017-01-18 Thread Mauricio Monsalvo
Hola. Tengo un archivo que viene separado por "|" y a su vez con (casi) todos los campos entre comillas ("..."), incluso los valores numéricos. Adjunto algunos datos de prueba. El error que da es que no encuentra 14 elementos en las filas (son 15 variables). Probé algunas variantes y traté de

[R] PCA in Q- and R-modes

2017-01-18 Thread Josh Mitteldorf
I'm working with proteomic data, helping a student who knows biology and has done analysis in R without understanding it in depth. We have 3000 protein levels for 6 ages. I can treat this as 6 vectors in 3000-dimensional space, diagonalize a 6x6 covariance matrix and find 5 principal components,

Re: [R] Match ISO 8601 week-of-year numbers to month-of-year numbers on Windows with German locale

2017-01-18 Thread Janko Thyson
Hi Steve, and thanks so much for taking the time to draft your solution! After running through it looks like it's EXACTLY what I was looking/hoping for! For those interested: I also tried to get this in as a feature request for the lubridate package >>

Re: [R-es] Error al fusionar tablas

2017-01-18 Thread miriam . alzate
Buenas tardes, El problema está ya resuelto. Muchas gracias a todos por vuestra ayuda. El problema estaba en que la variable común con la que quería fusionar las dos tablas tenía espacios en blanco al final en una de las tablas y no en la otra. Por ello, parecía como que entre las dos tablas no

Re: [R] can this be simplified with purrr:map or mapply?

2017-01-18 Thread Ulrik Stervbo
If you want to use purrr, you could do fil <- paste0("data",2004:2014,".txt") map_df(fil, read.table, .id = "fil") to get everything in one data frame (I assume all files have the same structure) HTH Ulrik On Wed, 18 Jan 2017 at 16:10 PIKAL Petr wrote: > Hi > > Let me

Re: [R] non-parametric manova with post-hoc test

2017-01-18 Thread Cade, Brian
You could try a multi-response permutation procedure (MRPP) for multivariate hypothesis testing (null is groups come from a common distribution) without resorting to ranks. There are no automated multiple comparison procedures, but one could either look at pairwise contrasts of group (if that is

Re: [R] R studio server vs R server and Small computer to run R

2017-01-18 Thread Marc Schwartz
> On Jan 18, 2017, at 11:03 AM, John Sorkin wrote: > > Please forgive my resending this help request. I sent it two days ago. To > date I have not received any responses. > Thank you, > John > > > I am looking for a small computer low power that I make available

[R] R studio server vs R server and Small computer to run R

2017-01-18 Thread John Sorkin
Please forgive my resending this help request. I sent it two days ago. To date I have not received any responses. Thank you, John I am looking for a small computer low power that I make available on the web that will run R studio server or R server 1) can anyone recommend a computer? 2)

[R] non-parametric manova with post-hoc test

2017-01-18 Thread michael.eisenring
Good day, I am looking for a way to perform a non parametric manova and to analyze the result using post-hoc tests (an equivalent of the kruskal wallis test for anova) In my book (discovering statistic using R) two tests are described Munzel and Brunners method (mulrank) and Choi and Mardens

Re: [R] can this be simplified with purrr:map or mapply?

2017-01-18 Thread PIKAL Petr
Hi Let me make some assumptions. Your data are stored as *txt files somewhere. I would start with vector of file names fil<-paste0("data",2004:2014,".txt") > fil [1] "data2004.txt" "data2005.txt" "data2006.txt" "data2007.txt" "data2008.txt" [6] "data2009.txt" "data2010.txt" "data2011.txt"

Re: [R] can this be simplified with purrr:map or mapply?

2017-01-18 Thread Erich Subscriptions
Look up get and mget in the docs. > On 18 Jan 2017, at 10:57, Brandon Payne wrote: > > I can't get my head around the *apply family of functions, > surely there's a better way than what I have. > I've tried using paste0 on the years, but then I have lists of strings, not

Re: [R] Fwd: Need help in exporting R apriori rules to Excel

2017-01-18 Thread Sarah Goslee
I believe you need to convert them to a data frame before you can use any data frame export functions to save them to disk. See ?as I'm assuming that you are using the arules package; your question is incomplete. I've never used arules myself; I googled "rhelp export apriori rules" Sarah On

[R] Fwd: Need help in exporting R apriori rules to Excel

2017-01-18 Thread Edward Tamil
Hi Sir, Need help in exporting R apriori rules to Excel. i tried write.csv write.table write.csv2 only exporting less than 500 rules. unable to export Large Data. " No Error Msg" File size is "0" -- *Edward * -- -- *Regards * *:)* *Edward Tamil.S * [[alternative HTML

[R] Smoothing a Time Series

2017-01-18 Thread tgramer
Dear R-Team, i only want to smooth a time series with a Kalmen Filter in R (KFAS). I found code in the Internet, which I had to change a little bit. Now I get the following error-message. I don’t know what I have to do now. Fehler in is.SSModel(do.call(updatefn, args = c(list(inits, model),

[R] can this be simplified with purrr:map or mapply?

2017-01-18 Thread Brandon Payne
I can't get my head around the *apply family of functions, surely there's a better way than what I have. I've tried using paste0 on the years, but then I have lists of strings, not data frames. `realList<-paste0("exp",as.character(2004:2014),"s")` I can't seem to convert these lists of strings

[R] Stats course on Crete

2017-01-18 Thread Highland Statistics Ltd
We would like to announce the following statistics course: Course: Data exploration, regression, GLM & GAM with R Where: HCMR, Crete, Greece When: 24-28 April 2017 Course website: http://www.highstat.com/statscourse.htm Course flyer:

Re: [R] Match ISO 8601 week-of-year numbers to month-of-year numbers on Windows with German locale

2017-01-18 Thread S Ellison
> -Original Message- > (yw <- format(posix, "%Y-%V")) > > # [1] "2015-52" "2015-53" "2016-53" "2016-01" > > Which, after checking back with a calendar, would give me reason to believe > that it using %V does in fact seem to work: it's an input to `format()` and R > doesn't seem to

[R] Error on using Rweka package

2017-01-18 Thread Partha Sinha
I am using R version 3.3.2 (64 bit) on ubuntu version 14. I am trying to install Rweka but getting the following error. Can someone please help me with this error ? Regards Parth Error : .onLoad failed in loadNamespace() for 'rJava', details: call: dyn.load(file, DLLpath = DLLpath, ...)

Re: [R-es] Iniciación en Word2Vec

2017-01-18 Thread Carlos Ortega
Hola, Aquí tienes referencias: http://stackoverflow.com/questions/30901595/word2vec-sentiment-classification-with-r-and-h2o http://stackoverflow.com/questions/40557162/r-text2vec-and-rword2vec-analogy-results-differ-between-packages

Re: [R] [FORGED] turning the output of cut into a waffle plot

2017-01-18 Thread Jim Lemon
Hi Rolf, About the only reason I would hesitate is package bloat. There are now 167 functions listed in the package. I posted the cut2matrix function for the benefit of those who had been following the thread, but it seems like a very peculiar way of displaying data. While I encourage trying

[R-es] Iniciación en Word2Vec

2017-01-18 Thread Milagros Camacho Bellido
Hola a todos: Estoy iniciando un proyecto con Word2Vec, para ver las ventajas y desventajas del modelo, y comprobar las aplicaciones y utilidades que pueda tener. Si alguien tiene experiencia con este modelo, ¿me puede aconsejar un paquete de R? ¿sabéis de algún tutorial? Un saludo y

Re: [R] Adding regression line to each individual plot in a window with multiple plots

2017-01-18 Thread Thierry Onkelinx
Hi Jake, You could consider switching to ggplot2 # create a dummy dataset dataset <- data.frame( XA = rnorm(100), XB = rnorm(100, mean = 10), YA = rnorm(100), YB = rnorm(100, mean = -10) ) # convert it to long format library(tidyr) long <- dataset %>% gather("Xcat", "Xvalue", XA:XB)