[R] Errors in "An introduction to R"

2023-07-06 Thread Jarkko Toivonen
Hi, Thanks for the great manual! I noticed a few errors in Version 4.3.1 (2023-06-16), though. Early in the document a "working directory" refers to a file system directory, such as ~/work. It is also discussed whether separate working directories should be used for separate analyses (page 6

Re: [R] Errors and OS Differences with as.POSIXct and as.POSIXlt

2021-01-19 Thread Bill Denney
There are many caveats about OS specificity on the strptime help page, but most of them have to do with formatting and fewer with validation. My reading of the strptime page indicates that conversion with as.POSIXct() will validate daylight savings times which the examples I gave indicate it is no

Re: [R] Errors and OS Differences with as.POSIXct and as.POSIXlt

2021-01-19 Thread Rui Barradas
Hello, R 4.0.3 on Ubuntu 20.04, sessionInfo() below. A fix is to use as.POSIXct instead: rui@rui:~$ Rscript --vanilla -e 'as.POSIXlt("2018-03-11 02:09", tz="America/New_York")' #[1] "2018-03-11 02:09:00 EDT" rui@rui:~$ Rscript --vanilla -e 'as.POSIXct("2018-03-11 02:09", tz="America/New_York

Re: [R] Errors and OS Differences with as.POSIXct and as.POSIXlt

2021-01-19 Thread Jeff Newmiller
This is as described in the documentation, due to OS differences, e.g [1]. [1] https://stat.ethz.ch/R-manual/R-devel/library/base/html/strptime.html On January 18, 2021 5:56:11 PM PST, Bill Denney wrote: >Hello, > > > >Dates created with as.POSIXct differ between Windows/Mac and Linux. >Specif

[R] Errors and OS Differences with as.POSIXct and as.POSIXlt

2021-01-19 Thread Bill Denney
Hello, Dates created with as.POSIXct differ between Windows/Mac and Linux. Specifically this time that is during a gap when the hour does not exist due to daylight savings time: as.POSIXct("2018-03-11 02:09:36", tz="America/New_York") Gives on Windows: [1] "2018-03-11 EST" Gives on Linux

[R] Errors and OS Differences with as.POSIXct and as.POSIXlt

2021-01-18 Thread bill
Hello, Dates created with as.POSIXct differ between Windows/Mac and Linux. Specifically this time that is during a gap when the hour does not exist due to daylight savings time: as.POSIXct("2018-03-11 02:09:36", tz="America/New_York") Gives on Windows: [1] "2018-03-11 EST" Gives on Li

Re: [R] Errors in R package installation

2019-12-13 Thread Ivan Krylov
On Fri, 13 Dec 2019 14:21:06 + David Stevens wrote: > ** byte-compile and prepare package for lazy loading > Fatal error: cannot open file 'C:\Users\David': No such file or > directory > > ERROR: lazy loading failed for package 'rmarkdown' Oh. Sorry, that seems to be yet another place where

Re: [R] Errors in R package installation

2019-12-13 Thread David Stevens
I started a new session and entered > rm(list=ls()) > install.packages( + c('lmerTest', 'quantreg', 'rmarkdown', 'SparseM'), + lib = .libPaths()[1L], + destdir = 'c:/myRLib' + ) And this is the result: There are binary versions available but the source versions are later: binary

Re: [R] Errors in R package installation

2019-12-13 Thread Ivan Krylov
On Fri, 13 Dec 2019 13:19:54 + David Stevens wrote: > There are binary versions available but the source versions are > later: Okay, that would be the reason why would R on Windows try to install a source package instead of a binary package. One can also see that callr has just been succ

Re: [R] Errors in R package installation

2019-12-13 Thread David Stevens
Ivan Here's a longer list. RStudio checked for what needs updating, I select all of them, and enter. The following is the console output (FYI - I tried this in plain Rgui.exe and got the same result - I don't think it's an RStudio issue). The failed installs are toward the bottom. Best David

Re: [R] Errors in R package installation

2019-12-13 Thread David Stevens
Ivan - thanks for looking into this. My answers to your comments are below. Cheers David On 12/13/2019 1:46 AM, Ivan Krylov wrote: On Thu, 12 Dec 2019 15:48:13 + David Stevens wrote: Certain R packages will not install properly on my Windows 10 computer.

Re: [R] Errors in R package installation

2019-12-13 Thread Ivan Krylov
On Thu, 12 Dec 2019 15:48:13 + David Stevens wrote: > Certain R packages will not install properly on my Windows 10 > computer. Certain, but not all? Which packages are you able to install on that computer? > Warning: invalid package 'C:\Users\David' > Warning: invalid package > 'Stevens\Ap

Re: [R] Errors in R package installation

2019-12-12 Thread Eric Berger
And a low-tech approach: how about renaming "C:\Users\David Stevens" to "C:\Users\DavidStevens" (i.e. remove the blank in the name). A few years ago I did the equivalent "C:\Program Files" --> "C:\ProgramFiles" to avoid similar installation problems. On Thu, Dec 12, 2019 at 9:06 PM Richard M. Heib

Re: [R] Errors in R package installation

2019-12-12 Thread Richard M. Heiberger
Directory and file names with embedded blanks frequently don't work on WIndows. Use the 8.3 version of the name. Since you were able to get the package onto your machine, you can install it from there. The downloaded source packages are in ‘C:\Users\David Stevens\AppData\Local\Temp\Rtmpk5

Re: [R] Errors in R package installation

2019-12-12 Thread David Stevens
Thanks Eric - I'll follow up with this link. I'd tried some of these things before but I'll keep after it. Best David On 12/12/2019 9:52 AM, Eric Berger wrote: > Actually there was progress as after it failed it removed the folder > c:/myRlib/callr, which means it had used it. Seems good. > I t

Re: [R] Errors in R package installation

2019-12-12 Thread Eric Berger
Actually there was progress as after it failed it removed the folder c:/myRlib/callr, which means it had used it. Seems good. I think you might find the discussion here to be relevant https://community.rstudio.com/t/cant-install-package-remotes-when-trying-to-install-devtools/34121 Good luck, Eri

Re: [R] Errors in R package installation

2019-12-12 Thread David Stevens
Thanks Eric - I had tried this and failed with install.packages('callr',destdir='c:/myRLib') Installing package into ‘C:/myRLib’ (as ‘lib’ is unspecified) There is a binary version available but the source version is later: binary source needs_compilation callr 3.3.2 3.4.0

Re: [R] Errors in R package installation

2019-12-12 Thread Eric Berger
Apparently it does not like that the fact that your user 'David Stevens' has a blank. Looking at the documentation ?install.packages it seems that if you modify your call to something like install.packages('callr',destdir='C:\tmp') you might be ok. (caveat: I did not try this) You should make th

[R] Errors in R package installation

2019-12-12 Thread David Stevens
Certain R packages will not install properly on my Windows 10 computer. For example, if I install.packages('callr') The result is trying URL 'https://cloud.r-project.org/src/contrib/callr_3.4.0.tar.gz' Content type 'application/x-gzip' length 100129 bytes (97 KB) downloaded 97 KB Warning: inva

Re: [R] Errors Generated by Function gof from LogisticDx Package

2019-05-06 Thread Bert Gunter
The warning message should be your hint. You cannot have gof statistics with perfect separation. See here for some suggestions: https://stats.stackexchange.com/questions/11109/how-to-deal-with-perfect-separation-in-logistic-regression Bert Gunter "The trouble with having an open mind is that peo

[R] Errors Generated by Function gof from LogisticDx Package

2019-05-06 Thread Paul Bernal
Dear Christopher and friends, Hope you are all doing great. I am currently using R version 3.6.0 and I have a Windows 8, 64-bit Operating System. When applying function gof on my glm model, I get the following errors: > gof(GLM1) Error in factor(G, labels = dx1[, format(max(P), digits = 3), by =

Re: [R] Errors in reading in txt files

2017-12-15 Thread Jeff Newmiller
Your times are formatted as 01.01.2001-24:00:00 but the default format is 2001-01-01 24:00:00 so you need to specify a format argument with as.POSIXct. Read about format strings in ?strptime. -- Sent from my phone. Please excuse my brevity. On December 15, 2017 9:21:54 AM PST, lily li wrote

Re: [R] Errors in reading in txt files

2017-12-15 Thread David Winsemius
> On Dec 15, 2017, at 9:21 AM, lily li wrote: > > I use the method, df$Time = as.POSIXct(df$Time), but it has the warning > message: > Error in as.POSIXlt.character(x, tz, ...) : > character string is not in a standard unambiguous format That's because your date-time data is not in "%Y-%m-%d %

Re: [R] Errors in reading in txt files

2017-12-15 Thread lily li
I use the method, df$Time = as.POSIXct(df$Time), but it has the warning message: Error in as.POSIXlt.character(x, tz, ...) : character string is not in a standard unambiguous format On Thu, Dec 14, 2017 at 1:31 PM, MacQueen, Don wrote: > In addition to which, I would recommend > > df <- read.t

Re: [R] Errors in reading in txt files

2017-12-14 Thread MacQueen, Don
In addition to which, I would recommend df <- read.table("DATAM", header = TRUE, fill = TRUE, stringsAsFactors=FALSE) and then converting the Time column to POSIXct date-time values using as.POSIXct() specifying the format using formatting codes found in ?strptime because the times are not in

Re: [R] Errors in reading in txt files

2017-12-14 Thread Berend Hasselman
> On 14 Dec 2017, at 20:01, Ista Zahn wrote: > > On Thu, Dec 14, 2017 at 1:58 PM, Berend Hasselman wrote: >> >>> On 14 Dec 2017, at 19:36, lily li wrote: >>> >>> Hi R users, >>> >>> I have a question about reading from text files. The file has the structure >>> below: >>> >>> Time

Re: [R] Errors in reading in txt files

2017-12-14 Thread Ista Zahn
On Thu, Dec 14, 2017 at 1:58 PM, Berend Hasselman wrote: > >> On 14 Dec 2017, at 19:36, lily li wrote: >> >> Hi R users, >> >> I have a question about reading from text files. The file has the structure >> below: >> >> TimeColumn1 Column2 >> 01.01.2001-12:00:00 > > T

Re: [R] Errors in reading in txt files

2017-12-14 Thread lily li
Thanks, Berend. I thought R can recognize the space automatically, such as na.strings="", or sep=' '. On Thu, Dec 14, 2017 at 11:58 AM, Berend Hasselman wrote: > > > On 14 Dec 2017, at 19:36, lily li wrote: > > > > Hi R users, > > > > I have a question about reading from text files. The file ha

Re: [R] Errors in reading in txt files

2017-12-14 Thread Berend Hasselman
> On 14 Dec 2017, at 19:36, lily li wrote: > > Hi R users, > > I have a question about reading from text files. The file has the structure > below: > > TimeColumn1 Column2 > 01.01.2001-12:00:00 This line does not contain 3 elements; only one. You'll have to fix t

[R] Errors in reading in txt files

2017-12-14 Thread lily li
Hi R users, I have a question about reading from text files. The file has the structure below: TimeColumn1 Column2 01.01.2001-12:00:00 01.01.2001-24:00:0012 11 01.02.2001-12:00:0013 10 01.02.2001-24:00:0011

Re: [R] Fwd: R errors

2017-10-02 Thread Jim Lemon
1, 2017 at 1:49 PM > Subject: R errors > To: r-wind...@r-project.org > > > Dear > > I'm very new R-user. > I run a model successfully and my supervisor ask me to confirm the result. > Then I run the same model again. However, it returns the error message in > print

[R] Fwd: Re: Fwd: R errors

2017-10-02 Thread Michael Dewey
Please do not just reply to me but also to the list as other people there more expert than I may be able to help you better. Michael Forwarded Message Subject:Re: [R] Fwd: R errors Date: Mon, 2 Oct 2017 18:39:39 +0900 From: NYI NYI HTWE To: Michael Dewey

Re: [R] Fwd: R errors

2017-10-02 Thread Michael Dewey
sent. Michael On 02/10/2017 03:13, NYI NYI HTWE wrote: -- Forwarded message -- From: NYI NYI HTWE Date: Sun, Oct 1, 2017 at 1:49 PM Subject: R errors To: r-wind...@r-project.org Dear I'm very new R-user. I run a model successfully and my supervisor ask me to confirm the r

Re: [R] Fwd: R errors

2017-10-02 Thread PIKAL Petr
something is different with your data from your first attempt. Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of NYI NYI > HTWE > Sent: Monday, October 2, 2017 4:14 AM > To: r-help@r-project.org > Subject:

[R] Fwd: R errors

2017-10-01 Thread NYI NYI HTWE
-- Forwarded message -- From: NYI NYI HTWE Date: Sun, Oct 1, 2017 at 1:49 PM Subject: R errors To: r-wind...@r-project.org Dear I'm very new R-user. I run a model successfully and my supervisor ask me to confirm the result. Then I run the same model again. However, it re

Re: [R] Errors running spdplyr example

2017-06-07 Thread Michael Sumner
On Wed, 7 Jun 2017 at 17:29 Shige Song wrote: > Dear All, > > When I tried to run the following code (taken from the *spdplyr* package > vignettes): > > library(spdplyr) > library(maptools) > data(wrld_simpl) > > worldcorner <- wrld_simpl %>% > mutate(lon = coordinates(wrld_simpl)[,1], lat = >

[R] Errors running spdplyr example

2017-06-07 Thread Shige Song
Dear All, When I tried to run the following code (taken from the *spdplyr* package vignettes): library(spdplyr) library(maptools) data(wrld_simpl) worldcorner <- wrld_simpl %>% mutate(lon = coordinates(wrld_simpl)[,1], lat = coordinates(wrld_simpl)[,2]) %>% filter(lat < -20, lon > 60) %>%

Re: [R] errors when installing packages

2016-11-29 Thread peter dalgaard
Presumably a problem at your end. Suspicion points to permission settings on the target directory, or virus checkers "helpfully" moving recently created files to a safe place for scrutiny. (Do you _really_ get errors for "survival" when installing "Hmisc"? It could happen via a dependency, I su

[R] errors when installing packages

2016-11-28 Thread Chris
I'm using R 3.3.1  when installing/ updating a library module, for example "Hmisc" I get an error message about "unable to move..." cutting/pasting survival’ successfully unpacked and MD5 sums checkedWarning: unable to move temporary installation ‘C:\Users\Chris\Documents\R\win-library\3.3\file

Re: [R] Errors in Raster to Point

2016-09-20 Thread David Remotti
First answer is that R is not the proper environment for such a question. There a re many free package for image analysis or even GIS. Try for example Q-GIS David Il 19/09/2016 22:34, GwanSeon Kim ha scritto: Hi, all I am just beginner to use R. I am working with TIF image file, and the info

Re: [R] Errors in Raster to Point

2016-09-20 Thread Michael Sumner
On Tue, 20 Sep 2016, 15:55 GwanSeon Kim wrote: > Hi, all > I am just beginner to use R. > I am working with TIF image file, and the information about the raster is > following: > > class : RasterLayer > dimensions : 11150, 21808, 243159200 (nrow, ncol, ncell) > resolution : 30, 30 (x, y

[R] Errors in Raster to Point

2016-09-19 Thread GwanSeon Kim
Hi, all I am just beginner to use R. I am working with TIF image file, and the information about the raster is following: class : RasterLayer dimensions : 11150, 21808, 243159200 (nrow, ncol, ncell) resolution : 30, 30 (x, y) extent : 569685, 1223925, 1513995, 1848495 (xmin, xmax,

Re: [R] Errors with maxNR: NA in gradient

2015-12-27 Thread ruipbarradas
Hello, Try using an equal sign after 'sigma': algo=maxNR(loglikelihood, start=c(sigma=8.686603,beta1=-4.976215,beta2=7.313875)) Hope this helps, Rui Barradas   Citando Emma MONTARSOLO : > Hi ! > > I use maxNR function (from maxLik package) to estimate parameters > via maximum likelihood a

[R] Errors with maxNR: NA in gradient

2015-12-27 Thread Emma MONTARSOLO
Hi ! I use maxNR function (from maxLik package) to estimate parameters via maximum likelihood and Newton–Raphson method. Context : I have a variable Y which follows a Gumbel distribution of parameters Beta1X1 + Beta2X2 (location parameter) and sigma (scale parameter). I have to estimate sigma,

Re: [R] Errors when compile RInside using intel c++ compiler on windows

2015-12-10 Thread Bert Gunter
Thanks, Marc. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Dec 10, 2015 at 9:43 AM, Marc Schwartz wrote: > Hi, > > For clarification, the rcp

Re: [R] Errors when compile RInside using intel c++ compiler on windows

2015-12-10 Thread Marc Schwartz
Hi, For clarification, the rcpp support list is the recommended location for RInside support: http://lists.r-forge.r-project.org/mailman/listinfo/rcpp-devel Regards, Marc > On Dec 10, 2015, at 11:30 AM, Bert Gunter wrote: > > Wrong list!. This is about programming **IN** the R language.

Re: [R] Errors when compile RInside using intel c++ compiler on windows

2015-12-10 Thread Bert Gunter
Wrong list!. This is about programming **IN** the R language. For your sort of question, post to the R-devel list. 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 Breathed in his "Bloom County" com

[R] Errors when compile RInside using intel c++ compiler on windows

2015-12-10 Thread 李琥
I have read the mailing list about compiling R using intel c++ compiler on linux. http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2013-January/005035.html In my environment I am going to compile RInside using intel c++ compiler on windows. I take the sample0 in RInside example fol

Re: [R] Errors --> Windows 8- R version 3.2.1

2015-08-08 Thread John C Frain
To check what your actual working directory is try getwd() To look a list of files in your actual working directory try dir() If your working directory is not what you expected change it with setwd("path to directory") There are several ways in Windows to ensure that R starts in the required

Re: [R] Errors --> Windows 8- R version 3.2.1

2015-08-08 Thread Uwe Ligges
E, 1. urls need to be ull qualified including the protocol such as "http://www.facebook.com"; 2. filenames are relative to the current working directory, if they are not in the current working directory, secify the full path. 3. read.csv() cannot read docx files Best, Uwe Ligges On

Re: [R] errors in initial values in R2winBUGS

2014-10-11 Thread Daniel Miquelluti
You are separating the objects using commas, the correct should be semicolons. Example: xi1=matrix(data=rep(0.0,600),ncol=3);xi2=matrix(data=rep(0.0,600),ncol=3)) Best regards, Daniel Miquelluti Em S�bado, 11 de Outubro de 2014 18:06, Uwe Ligges escreveu: On 11.10.2014 06:09, thanoon

Re: [R] errors in initial values in R2winBUGS

2014-10-11 Thread Uwe Ligges
On 11.10.2014 06:09, thanoon younis wrote: Dear all R users I am trying to find the bayesian analysis using R2winBUGS but i have errors in initial values with two groups. the R-code #Initial values for the MCMC in WinBUGS init1<-list(uby1=rep(0.0,10),lam1=c(0.0,0.0,0.0,0.0,0.0,0.0), gam1=c(1.0

[R] errors in initial values in R2winBUGS

2014-10-10 Thread thanoon younis
Dear all R users I am trying to find the bayesian analysis using R2winBUGS but i have errors in initial values with two groups. the R-code #Initial values for the MCMC in WinBUGS init1<-list(uby1=rep(0.0,10),lam1=c(0.0,0.0,0.0,0.0,0.0,0.0), gam1=c(1.0,1.0,1.0,1.0,1.0,1.0),psd1=1.0,phi1=matrix(data

[R] Errors with stConstruct() and STFDF()

2014-04-23 Thread Cyrus Mohammadian
Hey everyone, I’m new to R and this forum so I apologize in advance for any ambiguity in my question. What I want to do is create a spatiotemporal object (class st) out of an esri shapefile with multiple features and csv file containing data in long format (each row is one observation in space-t

Re: [R] Errors Calculating MVN Likelihood of Time Series with AR(1) Errors

2014-03-06 Thread Robert J. Kindman
Peter, Thanks very much for the advice. It looks like you're exactly right and the above-cited document may not be exactly right. Instead this ( http://pic.dhe.ibm.com/i

Re: [R] Errors Calculating MVN Likelihood of Time Series with AR(1) Errors

2014-03-06 Thread peter dalgaard
On 06 Mar 2014, at 19:16 , peter dalgaard wrote: > constant. Adding to that, and MA process with a neighbor correlation on the > order of .9 is not possible. To paraphrase, you're doing essentially this: Sorry, dyslectic fingers syndrome: [...] _an_ MA process [...] is not possible. -- Pe

Re: [R] Errors Calculating MVN Likelihood of Time Series with AR(1) Errors

2014-03-06 Thread peter dalgaard
On 06 Mar 2014, at 16:56 , Robert J. Kindman wrote: > Hi all, > > I'm having trouble calculating the likelihood of a time series with AR(1) > errors. I am generating my covariance matrix according to page 2 of ( > http://cran.r-project.org/doc/contrib/Fox-Companion/appendix-timeseries-regressi

[R] Errors Calculating MVN Likelihood of Time Series with AR(1) Errors

2014-03-06 Thread Robert J. Kindman
Hi all, I'm having trouble calculating the likelihood of a time series with AR(1) errors. I am generating my covariance matrix according to page 2 of ( http://cran.r-project.org/doc/contrib/Fox-Companion/appendix-timeseries-regression.pdf), using the library mvtnorm and the multivariate normal den

Re: [R] errors with hurdle negative binomial mixed effect models

2013-08-09 Thread Ben Bolker
Marta Lomas hotmail.com> writes: > > Hello! > I am new in the mailing list for R help and I hope to be able to > formulate a good question easy to understand. We hope so too :-) [snip] I will take a first crack at this here, but follow-ups should probably be redirected to the r-sig-mi

[R] errors with hurdle negative binomial mixed effect models

2013-08-09 Thread Marta Lomas
Hello! I am new in the mailing list for R help and I hope to be able to formulate a good question easy to understand. After trying to do many different things to solve an error I do not find the solution. I am modeling my data set with hurdle negative binomial mixed effects, to find the corre

Re: [R] Errors using large numbers ((i) all entries of 'x' must be nonnegative and finite and (ii) NAs introduced by coercion)

2013-07-16 Thread arun
3 12:54 PM Subject: Re: [R] Errors using large numbers ((i) all entries of 'x' must be nonnegative and finite and (ii) NAs introduced by coercion) Well, You could find it yourself, as.integer(c(75533, 4756922556, 88210, 6715122129)) [1] 75533    NA 88210    NA Warning message: NAs in

Re: [R] Errors using large numbers ((i) all entries of 'x' must be nonnegative and finite and (ii) NAs introduced by coercion)

2013-07-16 Thread PIKAL Petr
556 6715122129 Using as.integer inputs NA as integer type has limited size. Petr > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of jgibbons1 > Sent: Tuesday, July 16, 2013 4:44 PM > To: r-help@r-project.org > Subj

[R] Errors using large numbers ((i) all entries of 'x' must be nonnegative and finite and (ii) NAs introduced by coercion)

2013-07-16 Thread jgibbons1
Hello, I am fairly new to R, so please forgive me if this is a fairly easy solution. I am trying to perform multiple Fisher's Exact tests or Pearson's Chi-squared contingency tests from a datamatrix in which data from each row is data for an independent test. My data is formatted as such: AAA 75

Re: [R] Errors or warnings for non-existent data

2013-03-16 Thread Prof Brian Ripley
On 16/03/2013 07:19, brwin338 wrote: Good Evening Is there a setting that I can change in R so that I get either a warning or an error message if I reference non-existent data in a data frame? For example I get no warning or error message with the following: Use specific methods of indexi

[R] Errors or warnings for non-existent data

2013-03-16 Thread brwin338
Good Evening Is there a setting that I can change in R so that I get either a warning or an error message if I reference non-existent data in a data frame? For example I get no warning or error message with the following: > set.seed(2013) > df0=data.frame(cbind(x=rnorm(1000),y=rnorm(1000)))

Re: [R] Errors-In-Variables in R

2013-03-03 Thread John Fox
I hope this helps, John --- John Fox Senator McMaster Professor of Social Statistics Department of Sociology McMaster University Hamilton, Ontario, Canada > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r

Re: [R] Errors-In-Variables in R

2013-03-02 Thread David Winsemius
On Mar 2, 2013, at 1:55 PM, Cedric Sodhi wrote: > Perhaps it would have been clearer that this is no homework if I > hadn't forgotten to say what [1] is. Sorry for that. > > [1] https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15225 > > (This is no homework but genuinely adresses the proble

Re: [R] Errors-In-Variables in R

2013-03-02 Thread Rui Barradas
Hello, Like you say, apparently R doesn't have models for error in variables. But R packages might have. library(sos) findFn('errors-in-variables') Some look promising. Hope you find something. Rui Barradas Em 02-03-2013 21:55, Cedric Sodhi escreveu: Perhaps it would have been clearer that t

Re: [R] Errors-In-Variables in R

2013-03-02 Thread R. Michael Weylandt
Based on your comments in the (not-a-)bug report, I *think* this might help: quanttrader.info/public/betterHedgeRatios.pdf or more generally, the idea of total least squares regression. Cheers, MW On Sat, Mar 2, 2013 at 9:55 PM, Cedric Sodhi wrote: > Perhaps it would have been clearer that thi

Re: [R] Errors-In-Variables in R

2013-03-02 Thread Cedric Sodhi
Perhaps it would have been clearer that this is no homework if I hadn't forgotten to say what [1] is. Sorry for that. [1] https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15225 (This is no homework but genuinely adresses the problem that R to my knowledge does not have models for error in var

Re: [R] Errors-In-Variables in R

2013-03-02 Thread Rui Barradas
There's a no homework policy in R-help. Rui Barradas Em 02-03-2013 18:28, Cedric Sodhi escreveu: In reference to [1], how would you solve the following regression problem: Given observations (X_i,Y_i) with known respective error distributions (e_X_i,e_Y_i) (say, 0-mean Gaussian with known STD)

[R] Errors-In-Variables in R

2013-03-02 Thread Cedric Sodhi
In reference to [1], how would you solve the following regression problem: Given observations (X_i,Y_i) with known respective error distributions (e_X_i,e_Y_i) (say, 0-mean Gaussian with known STD), find the parameters a and b which maximize the Likelihood of Y = a*X + b Taking the example furth

Re: [R] R Errors

2012-10-16 Thread R. Michael Weylandt
lve this below Error.I have tried my best but again i have got > error. > Error in plot.new() : figure margins too large. > > Iam waiting for Reply > > > > -- > View this message in context: > http://r.789695.n4.nabble.com/R-Errors-tp4646311.html

[R] R Errors

2012-10-16 Thread kokila
How to resolve this below Error.I have tried my best but again i have got error. Error in plot.new() : figure margins too large. Iam waiting for Reply -- View this message in context: http://r.789695.n4.nabble.com/R-Errors-tp4646311.html Sent from the R help mailing list archive at

Re: [R] Errors when saving output from WinBUGS to R

2012-10-04 Thread Uwe Ligges
So have you closed WinBUGS regularly (and not via Esc in R) now? Uwe Ligges On 03.10.2012 21:29, yiyiwang wrote: Sorry for any cross messaging. Here are what I've tried and more info. The error sticks :( I installed the latest R2.15.1 (64bit) on my machine, per Uwe's comments. The same error

Re: [R] Errors when saving output from WinBUGS to R

2012-10-03 Thread yiyiwang
Sorry for any cross messaging. Here are what I've tried and more info. The error sticks :( I installed the latest R2.15.1 (64bit) on my machine, per Uwe's comments. The same error happened. Log file of WinBUGS look perfectly normal: ### display(log) check(C:/Jinmodel/test_c

Re: [R] Errors when saving output from WinBUGS to R

2012-10-03 Thread Uwe Ligges
On 03.10.2012 17:51, yiyiwang wrote: Dear all I used R2WinBUGS package's bugs() function to generate MCMC results. Then I tried to save the simulation draws in R, using read.bugs() function. Here is a simple test: ## library(coda) library(R2WinBUGS) #fake some data to test

Re: [R] Errors in if statement

2012-09-29 Thread arun
, 2012 10:55 PM Subject: RE: [R] Errors in if statement Thanks, Arun. The matrix format & put "NA" with 0 help.  but how do I do all the rows. Is the loop still OK? Z > Date: Fri, 28 Sep 2012 18:13:39 -0700 > From: smartpink...@yahoo.com > Subject: Re: [R] Errors in if st

Re: [R] Errors in if statement

2012-09-29 Thread arun
se((sum(x!=2)>3) & (sum(x==1)>=1) & (sum(x==3)>=1), 1,0) ) tmp #[1] 0 0 0 0 1 A.K. - Original Message - From: JiangZhengyu To: Cc: r-help@r-project.org Sent: Friday, September 28, 2012 4:16 PM Subject: [R] Errors in if statement Hi guys, I have many rows (>1000) and

Re: [R] Errors in if statement

2012-09-28 Thread David Winsemius
On Sep 28, 2012, at 1:16 PM, JiangZhengyu wrote: > > Hi guys, I have many rows (>1000) and columns (>30) of "geno" matrix. I use > the following loop and condition statement (adapted from someone else code). > I always have an error below. I was wondering if anyone knows what's the > problem

[R] Errors in if statement

2012-09-28 Thread JiangZhengyu
Hi guys, I have many rows (>1000) and columns (>30) of "geno" matrix. I use the following loop and condition statement (adapted from someone else code). I always have an error below. I was wondering if anyone knows what's the problem & how to fix it. Thanks,Zhengyu ### geno matrix P

Re: [R] Errors Updating Libraries (2.15) [RESOLVED]

2012-04-24 Thread Rich Shepard
On Tue, 24 Apr 2012, Duncan Murdoch wrote: So what do you mean by "same issues"? Do they all complain about reshape2, or not? Duncan, They all mention reshape2 because that's saved from the first R session today. But, they show the same errors as did reshape2 for each individual package.

Re: [R] Errors Updating Libraries (2.15)

2012-04-24 Thread Peter Langfelder
On Tue, Apr 24, 2012 at 3:05 PM, Rich Shepard wrote: > On Tue, 24 Apr 2012, Rich Shepard wrote: > >>  I'll rebuild R-2.15 and start over. Will post results after doing that. > > >  New build, new repository, same results. > >  Quite the new experience with R, but one I need to quickly put behind m

Re: [R] Errors Updating Libraries (2.15)

2012-04-24 Thread Duncan Murdoch
On 12-04-24 6:46 PM, Rich Shepard wrote: On Tue, 24 Apr 2012, Duncan Murdoch wrote: As far as I've seen, all your error messages have been about problems installing reshape2, you haven't had trouble with other packages. Same issues with ISwR, RPostgreSQL, deSolve and other packages. So

Re: [R] Errors Updating Libraries (2.15)

2012-04-24 Thread Rich Shepard
On Tue, 24 Apr 2012, Duncan Murdoch wrote: As far as I've seen, all your error messages have been about problems installing reshape2, you haven't had trouble with other packages. Same issues with ISwR, RPostgreSQL, deSolve and other packages. So you really want to look closely at reshape2.

Re: [R] Errors Updating Libraries (2.15)

2012-04-24 Thread Duncan Murdoch
On 12-04-24 6:05 PM, Rich Shepard wrote: On Tue, 24 Apr 2012, Rich Shepard wrote: I'll rebuild R-2.15 and start over. Will post results after doing that. New build, new repository, same results. Quite the new experience with R, but one I need to quickly put behind me. Can some

Re: [R] Errors Updating Libraries (2.15)

2012-04-24 Thread Rich Shepard
On Tue, 24 Apr 2012, Rich Shepard wrote: I'll rebuild R-2.15 and start over. Will post results after doing that. New build, new repository, same results. Quite the new experience with R, but one I need to quickly put behind me. Can someone suggest a test procedure to isolate the reaso

Re: [R] Errors Updating Libraries (2.15)

2012-04-24 Thread R. Michael Weylandt
Perhaps change mirror as well. Michael On Apr 24, 2012, at 4:29 PM, Rich Shepard wrote: > On Tue, 24 Apr 2012, R. Michael Weylandt wrote: > >> system.time(install.packages(c("plyr","reshape2","stringr"), type = >> "source")) > > Strange. Same results: > > Error in library(reshape2) : ther

Re: [R] Errors Updating Libraries (2.15)

2012-04-24 Thread Rich Shepard
On Tue, 24 Apr 2012, R. Michael Weylandt wrote: system.time(install.packages(c("plyr","reshape2","stringr"), type = "source")) Strange. Same results: Error in library(reshape2) : there is no package called ‘reshape2’ Execution halted Error in library(reshape2) : there is no package called ‘

Re: [R] Errors Updating Libraries (2.15)

2012-04-24 Thread Rich Shepard
On Tue, 24 Apr 2012, R. Michael Weylandt wrote: For the ones you named, you should be able to install them from source pretty easily: system.time(install.packages(c("plyr","reshape2","stringr"), type = "source")) Michael, Thanks. Since I have all the GNU build tools installed, and build mo

Re: [R] Errors Updating Libraries (2.15)

2012-04-24 Thread R. Michael Weylandt
For the ones you named, you should be able to install them from source pretty easily: system.time(install.packages(c("plyr","reshape2","stringr"), type = "source")) takes me about 20 seconds. plyr does have some compiled code though so you might need tools. The other two are all interpreted code

Re: [R] Errors Updating Libraries (2.15)

2012-04-24 Thread Rich Shepard
On Tue, 24 Apr 2012, Rich Shepard wrote: Actually, it's because OSU's Open Source Lab CRAN repository has almost no packages for 2.15. I'm now searching for a repository that has what I need. This is apparently not the case because there are no more listings in the 14.x directories than in

Re: [R] Errors Updating Libraries (2.15)

2012-04-24 Thread Rich Shepard
On Tue, 24 Apr 2012, Jeff Newmiller wrote: Perhaps you are not seeing the contact info for the package maintainer? Actually, it's because OSU's Open Source Lab CRAN repository has almost no packages for 2.15. I'm now searching for a repository that has what I need. Regards, Rich _

Re: [R] Errors Updating Libraries (2.15)

2012-04-24 Thread Rich Shepard
On Tue, 24 Apr 2012, Jeff Newmiller wrote: Perhaps you are not seeing the contact info for the package maintainer? Jeff, How does this affect downloading and building packages for the most curent version of R? I get the same errors when trying to install other packages in the ../2.15/ su

Re: [R] Errors Updating Libraries (2.15)

2012-04-24 Thread Jeff Newmiller
Perhaps you are not seeing the contact info for the package maintainer? ?maintainer --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

[R] Errors Updating Libraries (2.15)

2012-04-24 Thread Rich Shepard
I just upgraded from 2.14 to 2.15 and have run into an issue upgrading libraries that I've not had in previous version upgrades. For example, trying to install reshape2 for 2.15 throws errors and I don't see what to change to over come the problem: install.packages("reshape2") Installing pack

Re: [R] errors with lme4

2011-11-24 Thread Bert Gunter
Ben et. al: Shouldn't this thread be taken to R-sig-mixed-models ? Cheers, Bert On Thu, Nov 24, 2011 at 6:14 AM, Ben Bolker wrote: > Alessio Unisi unisi.it> writes: > >> >> Dear R-users, >> i need help for this topic! >> >> I'm trying to determine if the reproductive success >> (0=fail, 1=succ

Re: [R] errors with lme4

2011-11-24 Thread Ben Bolker
Alessio Unisi unisi.it> writes: > > Dear R-users, > i need help for this topic! > > I'm trying to determine if the reproductive success > (0=fail, 1=success) of a species of bird > is related to a list of covariates. > > These are the covariates: > §elev: elevation of nest (meters) > §

[R] errors with lme4

2011-11-24 Thread Alessio Unisi
Dear R-users, i need help for this topic! I'm trying to determine if the reproductive success (0=fail, 1=success) of a species of bird is related to a list of covariates. These are the covariates: §elev: elevation of nest (meters) §seadist: distance from the sea (meters) §meanterra

Re: [R] errors with lme4

2011-11-22 Thread ONKELINX, Thierry
Best regards, Thierry > -Oorspronkelijk bericht- > Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] > Namens Alessio Unisi > Verzonden: maandag 21 november 2011 18:20 > Aan: r-help@r-project.org > Onderwerp: [R] errors with lme4 > Urgentie: Hoog

  1   2   >