Re: [R] survMisc package

2015-03-08 Thread Berend Hasselman
> On 08-03-2015, at 19:29, Endy wrote: > > Hi R users. I have some problems with the package “survMisc”. When I am > loading it I am getting the following > library(survMisc)Loading required > package: survivalLoading required package: splinesLoading required package: > km.ciLoading required

Re: [R] Date extract Year

2015-03-08 Thread Rolf Turner
On 09/03/15 07:27, Steven Archambault wrote: My date column is the excel numeric date format. For instance, in excel, that first date is 11 September 2012. And we were supposed to know that? The level of obtuseness of people who post to this list truly knows no lower bound. Be that as it ma

Re: [R] Date extract Year

2015-03-08 Thread Bert Gunter
... and that is the source of your difficulties, as I and others have told you. -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." Clifford Stoll On Sun, Mar 8, 2015 at 11:27 A

[R] survMisc package

2015-03-08 Thread Endy
Hi R users. I have some problems with the package “survMisc”. When I am loading it I am getting the following > library(survMisc)Loading required package: survivalLoading required package: splinesLoading required package: km.ciLoading required package: ggplot2Loading required package: data.table

Re: [R] Date extract Year

2015-03-08 Thread Steven Archambault
My date column is the excel numeric date format. For instance, in excel, that first date is 11 September 2012. On Mar 8, 2015, at 10:41 AM, Frederic Ntirenganya wrote: > Hi Steve, > > Can you please explain to us your date column? thanks. > > Regards, > Fredo. > On Mar 8, 2015 7:32 PM, "Steve

Re: [R] How to see a R function's code

2015-03-08 Thread TeeJay
@ Jeff & @ Uwe: Thanks a lot! Worked like a charm Uwe Ligges-3 wrote > On 08.03.2015 02:45, Jeff Newmiller wrote: >> Most (perhaps all) packages are byte-compiled now. You can often see >> decompiled code by entering the name of the function without parentheses, >> or using the getAnywhere func

[R] survMisc

2015-03-08 Thread Endy
Hi R users. I have some problems with the package “survMisc”. When I am loading it I am getting the following > library(survMisc)Loading required package: survivalLoading required package: splinesLoading required package: km.ciLoading required package: ggplot2Loading required package: data.table

[R] Revised version of deldir.

2015-03-08 Thread Rolf Turner
There were some (obscure?) technical glitches in version 0.1-8. I have fixed these and have uploaded version 0.1-9 to CRAN. With a bit of luck that version will be satisfactory. cheers, Rolf -- Rolf Turner Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-

[R] "tile.list" method for "[" in deldir

2015-03-08 Thread Rolf Turner
I have now added a "tile.list" method for "[" so that "tile.list" objects can be sub-setted without losing their class or their "rw" attributes. This is incorporated in version 0.1-8 of deldir which I have just uploaded to CRAN. It should be available for download "soon". cheers, Rolf -

Re: [R] t-test: many changing groups.

2015-03-08 Thread Adams, Jean
Hard to disentangle your code in the non-HTML world of r-help. Please use plain text in the future. Below is one approach you could try. Jean # response variables resp_vars <- runif(20) names(resp_vars) <- paste0("sample_", seq(20)) # independent variables ind_vars <- matrix(sample(c("A", "B")

[R] graphs

2015-03-08 Thread Mir Salam
Dear all, I need help to get different 68 plots specifc fitted curves in one plot with respective field data observations (age vs dominant height). aspdomH2<-groupedData(domH2~age|plotno,data=aspdomH2) names(aspdomH2) plotno, age, origin, soilcharacter, domH2, plotno-different plot no

Re: [R] Extract year from date

2015-03-08 Thread Mark Sharp
Make the question reproducible (I used dput after getting the data into a dataframe). You need to provide a date of origin for the as.Date function. Try lubridate package. library(lubridate) wells <- structure(list(ID = structure(c(3L, 3L, 2L, 1L, 3L, 2L, 3L, 1L, 1L, 2L, 3L, 2L, 3L, 1L, 2L, 3L

Re: [R] polr: initial value in 'vmmin' is not finite

2015-03-08 Thread Prof Brian Ripley
If you did as the posting guide asked and not send HTML your message might actually be readable. But I see no sign of the 'commented, minimal, self-contained, reproducible' example. The issue is most likely the starting values. See ?polr for how to specify others (and it sounds like you can

[R] "survMisc"

2015-03-08 Thread Endy BlackEndy
Hi R users. I have some problems with the package “survMisc”. When I am loading it I am getting the following > library(survMisc) Loading required package: survival Loading required package: splines Loading required package: km.ci Loading required package: ggplot2 Loading required package:

Re: [R] Date extract Year

2015-03-08 Thread Spencer Graves
The Ecfun package includes a function "as.Date1970", that merely provides a default origin for "as.Date". This kind of thing can be found using library(sos) findFn('as.Date1970') This produced a list in my default browser showing 4 links in 3 packages, the first 2 of whic

Re: [R] Cluster mapping data

2015-03-08 Thread Leask, Graham
Bert, Thank you for the suggestion but I am familiar with the clustering routines in R. My issue is how to carry out a grouping analysis on multi variate data that includes postcode shape file data as a variable. Rather than obtain clusters spread across the map I am looking to limit the solut

Re: [R] install R-devel from R 3.1 to R 3.2 kubuntu

2015-03-08 Thread Karim Mezhoud
Resolved, Thanks sudo apt-get install libxt-dev sudo apt-get install fonts-inconsolata On Sun, Mar 8, 2015 at 11:30 AM, Uwe Ligges wrote: > > > On 08.03.2015 11:42, Karim Mezhoud wrote: > >> Thanks Uwe, >> yes I read it and I stopped on the last step (below). Something warning >> with x11 heade

Re: [R] Cluster mapping data

2015-03-08 Thread Bert Gunter
Have you looked at the "Cluster" task view on CRAN? http://cran.r-project.org/web/views/ -- Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." Clifford Stoll On Sun, Mar 8, 2015

[R] survMisc

2015-03-08 Thread Endy BlackEndy
Hi R users. I have some problems with the package “survMisc”. When I am loading it I am getting the following > library(survMisc) Loading required package: survival Loading required package: splines Loading required package: km.ci Loading required package: ggplot2 Loading required package:

[R] Cluster mapping data

2015-03-08 Thread Leask, Graham
I am looking to cluster some data including a postcode shape file but need to ensure that the resulting groups are contiguous. How do I accomplish this using R? Kind Regards Dr Graham Leask Economics & Strategy Group Aston University Aston Triangle Birmingham B4 7ET Tel: 0121 204 3150

Re: [R] Date extract Year

2015-03-08 Thread Bert Gunter
Please read ?as.Date carefully. Your argument appears to be numeric (??) and you do not seem to have specified an origin: "as.Date will accept numeric data (the number of days since an epoch), but only if origin is supplied." Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 46

[R] "survMisc" package

2015-03-08 Thread Endy BlackEndy
Hi R users. I have some problems with the package “survMisc”. When I am loading it I am getting the following > library(survMisc) Loading required package: survival Loading required package: splines Loading required package: km.ci Loading required package: ggplot2 Loading required package:

Re: [R] Date extract Year

2015-03-08 Thread Frederic Ntirenganya
Hi Steve, Can you please explain to us your date column? thanks. Regards, Fredo. On Mar 8, 2015 7:32 PM, "Steve Archambault" wrote: > Hi all, > > I am trying in vain to create a new object "Year" in my data frame from > existing Date data. I have tried many different approaches, but can't seem

[R] polr: initial value in 'vmmin' is not finite

2015-03-08 Thread Wouter Simons
Hi all, I'm trying to estimate an ordered probit model using polr: polr(Rating ~ Currac + Debt + Inflation + GDPpc + GDPgr + Ratio + Levelofdev + Eurozone + Default, method ="probit") where Rating is an ordered discrete dependent variable and the independent variables are a set of economic deter

[R] Extract year from date

2015-03-08 Thread Steve Archambault
Hi all, I am trying in vain to create a new object "Year" in my data frame from existing Date data. I have tried many different approaches, but can't seem to get it to work. Here is an example of some code I tried. date1<- as.Date(wells$Date,"%m/%d/%Y") wells$year<-as.numeric(format(date1, "%Y"))

Re: [R] Date extract Year

2015-03-08 Thread Steve Archambault
Hi all, I am trying in vain to create a new object "Year" in my data frame from existing Date data. I have tried many different approaches, but can't seem to get it to work. Here is an example of some code I tried. date1<- as.Date(wells$Date,"%m/%d/%Y") wells$year<-as.numeric(format(date1, "%Y"))

[R] Performance issue on sparse matrix object

2015-03-08 Thread Romeo Kienzler
Hi, I'm writing to a sparse 2500x18 matrix in a column wise random access pattern and I'm facing very strong performance issues which I'm not facing with the dense implementation ( where I'm facing main memory issues ) Is there another way to solve this? Best regards Romeo [[altern

Re: [R] install R-devel from R 3.1 to R 3.2 kubuntu

2015-03-08 Thread Uwe Ligges
On 08.03.2015 11:42, Karim Mezhoud wrote: Thanks Uwe, yes I read it and I stopped on the last step (below). Something warning with x11 headers/libs. What I need to do? Thanks sudo apt-get build-dep r-base sudo apt-get install subversion ccache mkdir ~/svn/ cd ~/svn/ svn co https://svn.r-projec

Re: [R] install R-devel from R 3.1 to R 3.2 kubuntu

2015-03-08 Thread Karim Mezhoud
Thanks Uwe, yes I read it and I stopped on the last step (below). Something warning with x11 headers/libs. What I need to do? Thanks sudo apt-get build-dep r-base sudo apt-get install subversion ccache mkdir ~/svn/ cd ~/svn/ svn co https://svn.r-project.org/R/trunk r-devel/R cd /svn/r-devel/R LA

Re: [R] install R-devel from R 3.1 to R 3.2 kubuntu

2015-03-08 Thread Uwe Ligges
On 08.03.2015 08:30, Karim Mezhoud wrote: Dear all, I found some threads about compiling r-devel source and installing process but I need some clarifications. 1. Is it better to uninstall R 3.1 before installing R-devel? No, they can be installed separately. 2. I have multiples library dire

Re: [R] How to see a R function's code

2015-03-08 Thread Uwe Ligges
On 08.03.2015 02:45, Jeff Newmiller wrote: Most (perhaps all) packages are byte-compiled now. You can often see decompiled code by entering the name of the function without parentheses, or using the getAnywhere function. For base R functions you should probably download the R source tar file