Re: [R] Error in model.frame.default(formula = formula, data = data, drop.unused.levels = TRUE, : object is not a matrix

2017-03-01 Thread PIKAL Petr
Hi what is result of str(deret) or is.matrix(deret) Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Allan > Tanaka > Sent: Wednesday, March 1, 2017 11:52 AM > To: r-help@r-project.org > Subject: [R] Error in

Re: [R] install problem from Github or downloaded file

2017-03-01 Thread David Winsemius
> On Mar 1, 2017, at 5:44 PM, Jianling Fan wrote: > > Thanks, > > I also tried other packages from github and I got the same error. So I > think this should not be the probelm for the "artyfarty" package. > There should be something wrong with my computer. I also

Re: [R] install problem from Github or downloaded file

2017-03-01 Thread Jianling Fan
Thanks, I also tried other packages from github and I got the same error. So I think this should not be the probelm for the "artyfarty" package. There should be something wrong with my computer. I also uninstalled R and re-installed it. The error happens again... Thanks anyway. On Wed, Mar 1,

Re: [R] install problem from Github or downloaded file

2017-03-01 Thread David Winsemius
Installation proceeded without error on a Mac ("El Cap") running R 3.3.2 using the first call to devtools::install_github. This is the DESCRIPTION file: Package: artyfarty Type: Package Title: Themes for ggplot2 Version: 0.0.1 Authors@R: person("Bart","Smeets", email="bartsmeet...@gmail.com",

Re: [R] install problem from Github or downloaded file

2017-03-01 Thread Jeff Newmiller
CRAN is notorious for being picky, performing hundreds of quality checks before allowing a package to be shared there. Has it occurred to you that "artyfarty", not having been through CRAN, might simply be broken? Yes the directories you ask about are only present temporarily while the package

[R-es] Sesión 42 del Grupo de Usuarios de R de Madrid - Material disponible...

2017-03-01 Thread Carlos Ortega
Hola, Ya está disponible parte del material de la sesión del grupo que se realizó ayer: http://madrid.r-es.org/martes-28-de-febrero-2017/ Gracias, Carlos. [[alternative HTML version deleted]] ___ R-help-es mailing list

[R] install problem from Github or downloaded file

2017-03-01 Thread Jianling Fan
Hello everyone, I can install packages from CRAN, but I got some problem for installing packages from Github or downloaded package files. I got this problem in recent weeks. example: > devtools::install_github('bart6114/artyfarty') Downloading GitHub repo bart6114/artyfarty@master from URL

Re: [R-es] error en el cambio de formato desde factor a numerico USANDO LAPPLY

2017-03-01 Thread Carlos Ortega
​Hola, Es más fácil que todo eso... Es que en tu fichero de entrada, la segunda fila son las unidades de las variables que tienes en la primera fila, pero "R" al leerlas las considera como un string que altera la clase de toda la columna cuando ésta es numérica. Simplemente eliminando esa

Re: [R] Coefficient of Partial Determination

2017-03-01 Thread Nordlund, Dan (DSHS/RDA)
The rms and Hmisc packages can be found on CRAN. Just run install packages from the console menu. Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services > -Original Message- >

Re: [R] How to select one value per row (different columns) from array

2017-03-01 Thread Wolfgang Waser
Thank you very much indeed. PD's code is exactly what I was looking for, and unfortunately it is so obvious, that I could kick myself for not thinking of it in the first place, as I feared would happen. WM: thanks for the additional suggestion. I'll check it in detail to see how my codes can

Re: [R] Coefficient of Partial Determination

2017-03-01 Thread David Winsemius
> On Mar 1, 2017, at 9:57 AM, AbouEl-Makarim Aboueissa > wrote: > > Dear All: > > Can the *Coefficient of Partial Determination* in multiple linear > regression be computed in R? If so, could you please let me know how? > > > fullmodel <- lm(Price ~ Size +

[R] Coefficient of Partial Determination

2017-03-01 Thread AbouEl-Makarim Aboueissa
Dear All: Can the *Coefficient of Partial Determination* in multiple linear regression be computed in R? If so, could you please let me know how? fullmodel <- lm(Price ~ Size + Lotsize + Bedrooms + Bathrooms) *I found this in the internet, but I could find the package "rms"* *library(rms) #

Re: [R] Error in model.frame.default(formula = formula, data = data, drop.unused.levels = TRUE, : object is not a matrix

2017-03-01 Thread Rui Barradas
Hello, >What is function logret? After loading the packages I've tried ?logret No documentation for ‘logret’ in specified packages and libraries: you could try ‘??logret’ Besides, how can you use a function logret(data1.ts, ...) and then do depmix(logret ~ 1, ...) Suddenly logret becomes a

Re: [R] where is .emacs file?

2017-03-01 Thread peter dalgaard
This isn't the emacs help list... Anyways, a less intrusive method is to start a Terminal and use ls -a. As far as I can tell, the stock emacs on Mac actually works with a .emacs.d directory into which you are supposed to drop .el files, rather than the monolithic .emacs file. I see claims

[R-es] II Hackatón SevillaR - 4 Marzo 2017

2017-03-01 Thread Francisco Rodriguez Sanchez
Buenas tardes, Envío información del hackatón que hemos organizado en el grupo local de SevillaR para este sábado, por si a alguien le apetece pasarse. Gracias II Hackatón SevillaR https://github.com/SevillaR/jacaton

Re: [R] where is .emacs file?

2017-03-01 Thread David Winsemius
> On Mar 1, 2017, at 4:28 AM, Ulrik Stervbo wrote: > > Files starting with dots are hidden files on Mac. The emacs configuration > file .emacs should be in your home directory. You can list all files - also > the hidden ones - by `ls -a` in your console. I don't use Mac

Re: [R-es] Matlab

2017-03-01 Thread Carlos Ortega
Y también hay alguien haciendo ya algún pinito en un conversor... https://github.com/sidjai/matconv Saludos, Carlos Ortega www.qualityexcellence.es El 1 de marzo de 2017, 15:05, escribió: > > > Estimados > > ¿Es posible "traducir" scripts del Matlab a R? > > > --

[R] Error in model.frame.default(formula = formula, data = data, drop.unused.levels = TRUE, : object is not a matrix

2017-03-01 Thread Allan Tanaka
Hi,  I have encountered the following error, when running 'depmix' function, which I think  has something to do with my data, and I cannot understand why, even though i have converted my data into as.matrix() See attached file  library(depmixS4) library(TTR) library(ggplot2) library(reshape2)

[R] Windows server 2012

2017-03-01 Thread Yates, James W T
Hello I'm investigating installing R in a virtual machine environment. Does anyone have experience running R on windows server 2012? Regards James AstraZeneca UK Limited is a company incorporated in Engl...{{dropped:16}}

Re: [R] How to select one value per row (different columns) from array

2017-03-01 Thread William Michels via R-help
Hello Wolfgang, Building on Peter Dalgaard's code, are you just trying to take a sample of a random column from each row? You don't need to use apply: > array[cbind(1:nrow(array), sample.int(ncol(array), nrow(array), replace=TRUE ))] Just a general note, since you're sampling one-column-per-row

Re: [R-es] Matlab

2017-03-01 Thread Xavi tibau alberdi
Buenas, Aquí tienes un hilo de StackOverflow, donde lo tratan... aunque parece que la mejor y (casi) única manera es como dice Carlos. http://stackoverflow.com/questions/5527145/convert-matlab-code-to-r Un saludo, Xavier 2017-03-01 15:14 GMT+01:00 Carlos J. Gil Bellosta

Re: [R-es] Matlab

2017-03-01 Thread Carlos J. Gil Bellosta
Sí, claro: a mano y con dificultad. Un saludo, Carlos J. Gil Bellosta http://www.datanalytics.com El 1 de marzo de 2017, 15:05, escribió: > > > Estimados > > ¿Es posible "traducir" scripts del Matlab a R? > > > -- > Este mensaje le ha llegado mediante el servicio

Re: [R] How to select one value per row (different columns) from array

2017-03-01 Thread peter dalgaard
array[cbind(1:999,vector)] -pd On 01 Mar 2017, at 14:28 , Wolfgang Waser wrote: > Dear all, > > I have to pick one value per row from an array, but from row to row from > a different column. The column positions of the values for each row are > stored in a vector.

[R] How to select one value per row (different columns) from array

2017-03-01 Thread Wolfgang Waser
Dear all, I have to pick one value per row from an array, but from row to row from a different column. The column positions of the values for each row are stored in a vector. array: 999 rows, 48 columns vector: 999 values (each between 1 and 48) indicating for each row which value to pick from

Re: [R] where is .emacs file?

2017-03-01 Thread Ulrik Stervbo
Files starting with dots are hidden files on Mac. The emacs configuration file .emacs should be in your home directory. You can list all files - also the hidden ones - by `ls -a` in your console. I don't use Mac so I can't tell you how to show hidden files in Finder. If you still can't find the

[R] where is .emacs file?

2017-03-01 Thread Naresh Gurbuxani
I am trying to install ESS so that it can be used when EMACS is launched from Mac Terminal.  After running "make" from the directory where ESS files are saved, the instructions ask the following to be added to .emacs file: (require 'ess-site) But I cannot find .emacs file. I have already

Re: [R] Metafor multilevel metaregression: total variance increases when moderator added?

2017-03-01 Thread Michael Dewey
Dear Laura If you are unable for some reason to share the data why not incorporate the output into an e-mail (and please turn of HTML as it mangles everything). Putting the plots from profiling somewhere we can read them would be a useful addition. This looks at first glance one of those