[R] R Courses: Sydney, Melbourne and Brisbane, February 2016

2016-01-19 Thread Kris Angelovski
Hi, (apologies for cross-posting) SolutionMetrics is presenting R courses in February - Sydney, Melbourne & Brisbane. We also offer courses in-house/at your office. Convenience of staff not travelling and more economical per-user. Getting Started with R (1 Day) - $880 (Early bird discount: $

Re: [R] Installing ggplot2

2016-01-19 Thread David Winsemius
> On Jan 19, 2016, at 4:31 PM, Jeff Reichman wrote: > > R-Help > > > > I'm unable to load ggplot2. > > > >> install.packages("ggplot2") #appears to run fine Try instead: install.packages("ggplot2", dependencies=TRUE) > >> library(ggplot2) > > Error in loadNamespace(j <- i[[1L]],

[R] Installing ggplot2

2016-01-19 Thread Jeff Reichman
R-Help I'm unable to load ggplot2. > install.packages("ggplot2") #appears to run fine > library(ggplot2) Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called 'Rcpp' Error: package or namespace load failed for 'ggplot2

Re: [R] (no subject)

2016-01-19 Thread Jim Lemon
Hi Maryam, Sounds like: c(Young.list1[sample(1:20,1),],Young.list2[sample(1:20,1),],Young.list3[sample(1:20,1),]) to me. Jim On Wed, Jan 20, 2016 at 7:35 AM, wrote: > Hello, > > What do you want to sample? Rows? With or without replacement? You > need to give us more information on what you

Re: [R] gap.plot fails to plot tick labels on y-axis

2016-01-19 Thread Jim Lemon
Hi Ludo, The good news is that it was easy. The bad news is that it was my fault. I hadn't tried labeling the axes with something other than numbers. At about line 109 in the source code, this line: show.labels<-c(ytics[littletics],yticlab[bigtics]) should read: show.labels<-c(yticlab[li

Re: [R] Adjust Richards model with nlme

2016-01-19 Thread David Winsemius
> On Jan 19, 2016, at 3:20 AM, raphael fernandes > wrote: > > Hello everyone, > > I have tried to adjust the non linear Richards growth model with this script: > > richards <- function(x,beta1,beta2,beta3,beta4) > beta1*(1-beta2*exp(-x*beta3))^beta4 > richards <- > deriv(~beta1*(1-beta2*

Re: [R] (no subject)

2016-01-19 Thread ruipbarradas
Hello, What do you want to sample? Rows? With or without replacement? You need to give us more information on what you want. Start by seeing the help page for ?sample Hope this helps, Rui Barradas   Citando MARYAM : > Dear mr/madam > I have 3 matrix with 20 rows and 3 columns like this: I w

[R] tcltk tkwidget(..."table")

2016-01-19 Thread Dalthorp, Daniel
Does anyone know a simple way to create a tcltk table with columns of varying widths? -Dan -- Dan Dalthorp, PhD USGS Forest and Rangeland Ecosystem Science Center Forest Sciences Lab, Rm 189 3200 SW Jefferson Way Corvallis, OR 97331 ph: 541-750-0953 ddalth...@usgs.gov [[alternative HT

Re: [R] Use SQL in R environment

2016-01-19 Thread MacQueen, Don
If you're wanting to retrieve data from external databases (I vaguely recall that is what SAS's proc sql does), then start by looking at the DBI package, which provides support for ROracle, RMySQL, and several more. There is also RODBC. -- Don MacQueen Lawrence Livermore National Laboratory 700

[R] Survival::coxph (clogit), survConcordance vs. summary(fit) concordance

2016-01-19 Thread Joe Ceradini
Hi, I'm running conditional logistic regression with survival::clogit. I have "1-1 case-control" data, i.e., there is 1 case and 1 control in each strata. Model: fit <- clogit(resp ~ x1 + x2, strata(ID), cluster(site), method ="efron", data = dat) Where resp is 1's and 0's, and x1 and x2 are both

[R] (no subject)

2016-01-19 Thread MARYAM
Dear mr/madam I have 3 matrix with 20 rows and 3 columns like this: I want to sample randomly from three matrix and put it in a vector.How can i do that? Young.list1<- matrix(NA,nrow= 20,ncol=3) Young.list1[,1]<- 1:20 Young.list1[,2]<- 0.6 Young.list1[,3]<- 500 colnames(Young.list1)<- c("ID","r",

Re: [R] xts/zoo index problem?

2016-01-19 Thread David Winsemius
> On Jan 19, 2016, at 7:44 AM, Bert Gunter wrote: > > FAQ 7.31 maybe. (Unless special software is used) Only a finite number > of numbers can be represented exactly on a computer. Agree that seemed the likely explanation out of the gate. Here's the evidence. > print( as.numeric(index(a), "%OS3

Re: [R] xts/zoo index problem?

2016-01-19 Thread Bert Gunter
FAQ 7.31 maybe. (Unless special software is used) Only a finite number of numbers can be represented exactly on a computer. 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 C

[R] gap.plot fails to plot tick labels on y-axis

2016-01-19 Thread Ludo Pagie
Dear all, I'm using gap.plot(..) (plotrix-3-5-11) to make a plot containing a broken axis. It seems in some cases that gap.plot() does not plot the proper tick labels at the y-axis. Case in question is when I specify tick labels for all ticks, on both y-ranges (ones below and one above the gap). W

[R] Adjust Richards model with nlme

2016-01-19 Thread raphael fernandes
Hello everyone, I have tried to adjust the non linear Richards growth model with this script: richards <- function(x,beta1,beta2,beta3,beta4) beta1*(1-beta2*exp(-x*beta3))^beta4 richards <- deriv(~beta1*(1-beta2*exp(-x*beta3))^beta4,c("beta1","beta2","beta3","beta4"),function(x,beta1,beta2,b