Re: [R] clock24.plot/radial plot

2016-04-21 Thread Ulrik Stervbo
I use ggplot2 for all my plotting needs where you can make plots circular
with the coord_polar. Maybe this will help you along:
http://rstudio-pubs-static.s3.amazonaws.com/3369_998f8b2d788e4a0384ae565c4280aa47.html

On Fri, 22 Apr 2016 at 08:31 Ogbos Okike  wrote:

> Dear All,
> I am trying to generate a circular/radial plot. The script below has a
> result I am looking for:
> testlen<-rnorm(24)*2+5
>  testpos<-0:23+rnorm(24)/4
>  clock24.plot(testlen,testpos,main="Test Clock24 (lines)",show.grid=FALSE,
>   line.col="green",lwd=3)
>  if(dev.interactive()) par(ask=TRUE)
>  # now do a 'daylight' plot
>  oldpar<-clock24.plot(testlen[7:19],testpos[7:19],
>   main="Test Clock24 daytime (symbols)",
>   point.col="blue",rp.type="s",lwd=3)
>  # reset everything
>  par(oldpar)
>
> I tried to play with the script to work with my data. I read my data:
> swe<-scan("onedaydata",list(dates="",time="",count=""))
> dates<-swe$dates
> times<-swe$time
> count<-swe$count.
> I tried to replace testlen<-rnorm(24)*2+5 with testlen<-count and
> oldpar<-clock24.plot(testlen[7:19],testpos[7:19], with
> oldpar<-clock24.plot(testlen[0:23],testpos[0:23], but nothing worked.
> The format of my data is 2005/01/01 00:00   4009
> 2005/01/01 01:00   3969
> 2005/01/01 02:00   3946
> 2005/01/01 03:00   3975
> 2005/01/01 04:00   3960
> 2005/01/01 05:00   3974
> 2005/01/01 06:00   3971
> 2005/01/01 07:00   3970
> 2005/01/01 08:00   3962
> 2005/01/01 09:00   3992
> 2005/01/01 10:00   3955
> 2005/01/01 11:00   3963
> 2005/01/01 12:00   3965
> 2005/01/01 13:00   3947
> 2005/01/01 14:00   3959
> 2005/01/01 15:00   3978
> 2005/01/01 16:00   3967
> 2005/01/01 17:00   3978
> 2005/01/01 18:00   3988
> 2005/01/01 19:00   4043
> 2005/01/01 20:00   4026
> 2005/01/01 21:00   3996
> 2005/01/01 22:00   3967
> 2005/01/01 23:00   3969
> 2005/01/02 00:00   3976
> 2005/01/02 01:00   3969
> 2005/01/02 02:00   3955
> 2005/01/02 03:00   3984
> 2005/01/02 04:00   3971
> 2005/01/02 05:00   3960
> 2005/01/02 06:00   3951
> 2005/01/02 07:00   3948
> 2005/01/02 08:00   3954
> 2005/01/02 09:00   3948
> 2005/01/02 10:00   3960
> 2005/01/02 11:00   3964
> 2005/01/02 12:00   3962
> 2005/01/02 13:00   3959
> 2005/01/02 14:00   3950
> 2005/01/02 15:00   3972
> 2005/01/02 16:00   3984
> 2005/01/02 17:00   3983
> 2005/01/02 18:00   3982
> 2005/01/02 19:00   3987
> 2005/01/02 20:00   3989
> 2005/01/02 21:00   3975
> 2005/01/02 22:00   3956
> 2005/01/02 23:00   3975
> 2005/01/03 00:00   3946
> 2005/01/03 01:00   3944
> 2005/01/03 02:00   3915
> 2005/01/03 03:00   3901
> 2005/01/03 04:00   3893
> 2005/01/03 05:00   3854
> 2005/01/03 06:00   3824
> 2005/01/03 07:00   3790
> 2005/01/03 08:00   3770
> 2005/01/03 09:00   3794
> 2005/01/03 10:00   3778
> 2005/01/03 11:00   3803
> 2005/01/03 12:00   3801
> 2005/01/03 13:00   3800
> 2005/01/03 14:00   3783
> 2005/01/03 15:00   3789
> 2005/01/03 16:00   3804
> 2005/01/03 17:00   3781
> 2005/01/03 18:00   3785
> 2005/01/03 19:00   3772
> 2005/01/03 20:00   3777
> 2005/01/03 21:00   3766
> 2005/01/03 22:00   3775
> 2005/01/03 23:00   3779
> 2005/01/04 00:00   3798
> 2005/01/04 01:00   3806
>
> A sample of the plot I want is attached. My data is quite large.
> Thanks for your time.
> Best wishes
> Ogbos
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] R2BayesX help

2016-04-21 Thread Hairong Gu
Hi,

I wonder if anyone can help me with this issue. I am using R2BayesX. It
seems that the model can maximally contain 20 interactions. When the number
of interaction terms exceed 20, the code stops working. Here is a piece of
toy code.

rm(list=ls())
library(BayesX)
library(R2BayesX)

#data generating model
f2<-function(x1,x2,x3,x4)
{
  y<-2*sin(pi*x1)*1.5+exp(2*x2)/3+2 * sin(4 * pi * (x3 - 0.2) *(x4 - 0.7))
}

#the dataset
nsample<-40  #sample size
x1.tot<-runif(nsample,0,1)
x2.tot<-runif(nsample,0,1)
x3.tot<-runif(nsample,0,1)
x4.tot<-runif(nsample,0,1)
x5.tot<-runif(nsample,0,1)
x6.tot<-runif(nsample,0,1)
x7.tot<-runif(nsample,0,1)

pnoise<-0.2
eta<-f2(x1.tot,x2.tot,x3.tot,x4.tot)
y.tot<-eta+pnoise*rnorm(nsample,0,1)
d<-data.frame(y.tot,x1.tot,x2.tot,x3.tot,x4.tot,x5.tot,x6.tot,x7.tot)

nk2<-5

# the full model that contains the interactions of all pairs of x1~x7, 21
terms in total
fr2<-y.tot ~ sx(x1.tot, x2.tot, knots = nk2, bs = "te") + sx(x1.tot,
x3.tot, knots = nk2, bs = "te") +
  sx(x1.tot, x4.tot, knots = nk2, bs = "te") + sx(x1.tot, x5.tot, knots =
nk2, bs = "te") +
  sx(x1.tot, x6.tot, knots = nk2, bs = "te") + sx(x1.tot, x7.tot, knots =
nk2, bs = "te") +
  sx(x2.tot, x3.tot, knots = nk2, bs = "te") + sx(x2.tot, x4.tot, knots =
nk2, bs = "te") +
  sx(x2.tot, x5.tot, knots = nk2, bs = "te") + sx(x2.tot, x6.tot, knots =
nk2, bs = "te") +
  sx(x2.tot, x7.tot, knots = nk2, bs = "te") + sx(x3.tot, x4.tot, knots =
nk2, bs = "te") +
  sx(x3.tot, x5.tot, knots = nk2, bs = "te") + sx(x3.tot, x6.tot, knots =
nk2, bs = "te") +
  sx(x3.tot, x7.tot, knots = nk2, bs = "te") + sx(x4.tot, x5.tot, knots =
nk2, bs = "te") +
  sx(x4.tot, x6.tot, knots = nk2, bs = "te") + sx(x4.tot, x7.tot, knots =
nk2, bs = "te") +
  sx(x5.tot, x6.tot, knots = nk2, bs = "te") + sx(x5.tot, x7.tot, knots =
nk2, bs = "te") +
  sx(x6.tot, x7.tot, knots = nk2, bs = "te")

m2<-bayesx(fr2,data = d)

The code halted in a couple of seconds after the last function, with a
warning:

Warning message:
running command
'"C:/Users/Hairong/Documents/R/win-library/3.2/BayesXsrc/libs/x64/BayesX.exe"
C:/Users/Hairong/AppData/Local/Temp/RtmpkFfoCH/bayesx5/bayesx.estim.input.prg'
had status 5

The model was not estimated. However, if I delete ANY one of the
interaction terms to make the total interaction terms 20, the model can be
estimated.


I would appreciate your suggestion and explanation on this problem. Thank
you a lot.

Hairong

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] EIGEN VECTOR PROBLEM

2016-04-21 Thread MD. HABIBUR RAHMAN
Dear Sir,
I am an R user.
I am in problem to find eigen vectors in R.
For the following matrix eigen vectors are not right. I can not understand
why??
For the 1st eigen value and 2nd eigen value are same, but the eigen vectors
are not same.

*HOW CAN I RESOLVE THE PROBLEM??*











*>c=matrix(c(1,0,0,1,2,0,-3,5,2),nrow=3,byrow=T)> eigen(c)$values[1] 2 2
1$vectors [,1]  [,2]   [,3][1,]0  0.00e+00
0.1230915[2,]0  8.881784e-17 -0.1230915[3,]1 -1.00e+00
0.9847319*
>

-- 






Thanking You

Md. Habibur Rahman

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Error using RPostgreSQL

2016-04-21 Thread Izaak Rogan
Hi,

I'm having trouble connecting to my postgreSQL db on Heroku(Amazon)
using RPostgreSQL.

I've looked through GitHub for people doing the same thing. There are
quite a few examples and all look similar to the below:

drv <- dbDriver("PostgreSQL")

con <- dbConnect(
  drv,
  dbname = "dadqn30er7ghpl",
  host = "ec2-27-837-167-90.eu-west-1.compute.amazonaws.com",
  port = 5432,
  user = "tascofyvasswmblc",
  password = XX'
);

I'm getting the error:

Error in postgresqlNewConnection(drv, ...) :
  RS-DBI driver: (could not connect
tascofyvasswm...@ec2-27-837-167-90.eu-west-1.compute.amazonaws.com on
dbname "dascn90er7ghpl"
)

Any pointers would be hugely appreciated!

Thanks,
Izaak

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] plot 8 functions on one graph?

2016-04-21 Thread Judson Blake
 I'm trying to use
ggplot to make a single graph
that plots 8 distributions,
one above the other.

I created a data.frame
with 9 rows.   The first
is the coordinate along the x-axis.
The next is the y-values for
the first distribution.
After that is the y-values
for the next distribution... and so on.

How do I call ggplot to use such a data.frame
to make a single graph of 8 distributions?

Should my data.frame be formed differently?

.. judson blake

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] [R-pkgs] rPref 1.0 - Computing Pareto Optima and Database Preferences

2016-04-21 Thread Patrick Roocks

Dear R users,

the first 1.0 version of the rPref package is now on CRAN.

rPref allows to select the Pareto-optimal tuples from a data set, also 
called Skylines in the database community. For example, optimal tuples 
from mtcars according to "high(mpg) * high(hp)" (where "*" is the Pareto 
operator) are those cars, for which no other dominating car exists. 
There, a car dominates another car if its horsepower or miles-per-gallon 
value is strictly better while the other value is better or equal.


See http://p-roocks.de/rpref/index.php?section=examples for more examples.

The changes of this version include:
- A new function get_btg_dot to generate Better-Than-Graphs induced by 
the preference using Graphviz.

- Fixed compatibility issues with new versions of dplyr and testthat.

Comments and contributions are very welcome via github:
https://github.com/patrickroocks/rpref

Best regards,

Patrick

___
R-packages mailing list
r-packa...@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] clock24.plot/radial plot

2016-04-21 Thread Ogbos Okike
Dear All,
I am trying to generate a circular/radial plot. The script below has a
result I am looking for:
testlen<-rnorm(24)*2+5
 testpos<-0:23+rnorm(24)/4
 clock24.plot(testlen,testpos,main="Test Clock24 (lines)",show.grid=FALSE,
  line.col="green",lwd=3)
 if(dev.interactive()) par(ask=TRUE)
 # now do a 'daylight' plot
 oldpar<-clock24.plot(testlen[7:19],testpos[7:19],
  main="Test Clock24 daytime (symbols)",
  point.col="blue",rp.type="s",lwd=3)
 # reset everything
 par(oldpar)

I tried to play with the script to work with my data. I read my data:
swe<-scan("onedaydata",list(dates="",time="",count=""))
dates<-swe$dates
times<-swe$time
count<-swe$count.
I tried to replace testlen<-rnorm(24)*2+5 with testlen<-count and
oldpar<-clock24.plot(testlen[7:19],testpos[7:19], with
oldpar<-clock24.plot(testlen[0:23],testpos[0:23], but nothing worked.
The format of my data is 2005/01/01 00:00   4009
2005/01/01 01:00   3969
2005/01/01 02:00   3946
2005/01/01 03:00   3975
2005/01/01 04:00   3960
2005/01/01 05:00   3974
2005/01/01 06:00   3971
2005/01/01 07:00   3970
2005/01/01 08:00   3962
2005/01/01 09:00   3992
2005/01/01 10:00   3955
2005/01/01 11:00   3963
2005/01/01 12:00   3965
2005/01/01 13:00   3947
2005/01/01 14:00   3959
2005/01/01 15:00   3978
2005/01/01 16:00   3967
2005/01/01 17:00   3978
2005/01/01 18:00   3988
2005/01/01 19:00   4043
2005/01/01 20:00   4026
2005/01/01 21:00   3996
2005/01/01 22:00   3967
2005/01/01 23:00   3969
2005/01/02 00:00   3976
2005/01/02 01:00   3969
2005/01/02 02:00   3955
2005/01/02 03:00   3984
2005/01/02 04:00   3971
2005/01/02 05:00   3960
2005/01/02 06:00   3951
2005/01/02 07:00   3948
2005/01/02 08:00   3954
2005/01/02 09:00   3948
2005/01/02 10:00   3960
2005/01/02 11:00   3964
2005/01/02 12:00   3962
2005/01/02 13:00   3959
2005/01/02 14:00   3950
2005/01/02 15:00   3972
2005/01/02 16:00   3984
2005/01/02 17:00   3983
2005/01/02 18:00   3982
2005/01/02 19:00   3987
2005/01/02 20:00   3989
2005/01/02 21:00   3975
2005/01/02 22:00   3956
2005/01/02 23:00   3975
2005/01/03 00:00   3946
2005/01/03 01:00   3944
2005/01/03 02:00   3915
2005/01/03 03:00   3901
2005/01/03 04:00   3893
2005/01/03 05:00   3854
2005/01/03 06:00   3824
2005/01/03 07:00   3790
2005/01/03 08:00   3770
2005/01/03 09:00   3794
2005/01/03 10:00   3778
2005/01/03 11:00   3803
2005/01/03 12:00   3801
2005/01/03 13:00   3800
2005/01/03 14:00   3783
2005/01/03 15:00   3789
2005/01/03 16:00   3804
2005/01/03 17:00   3781
2005/01/03 18:00   3785
2005/01/03 19:00   3772
2005/01/03 20:00   3777
2005/01/03 21:00   3766
2005/01/03 22:00   3775
2005/01/03 23:00   3779
2005/01/04 00:00   3798
2005/01/04 01:00   3806

A sample of the plot I want is attached. My data is quite large.
Thanks for your time.
Best wishes
Ogbos
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] installation problem on Ubuntu

2016-04-21 Thread David Winsemius

> On Apr 21, 2016, at 1:23 PM, Paul Tremblay  wrote:
> 
> I was able to install the curl library with no problems. However, when I
> tried to install ggplot (install.packages("ggplot2")), I got the same
> message as earlier, that R can't load internet.so.

Is the libcurl directory in your search path?

David.
> 
> Thanks for your help!
> 
> On Wed, Apr 20, 2016 at 1:24 PM, Tom Wright  wrote:
> 
>> apt-get install curl libcurl4-openssl-dev
>> 
>> On Wed, 2016-04-20 at 09:36 -0700, Paul Tremblay wrote:
>>> I needed to update R so I could install ggplot. I am running Ubuntu
>> 12.04.
>>> I cannot upgrade Ubuntu because I am using a work computer.
>>> 
>>> I tried upgrading the normal way:
>>> 
>>> sudo apt-get update
>>> sudo apt-get install r-base r-base-dev
>>> 
>>> But this only installed an earlier version. Finally I tried installing
>> from
>>> source (./configure, Make install). This worked. However, when I try to
>>> install packages, I get this error:
>>> 
>>> Error in download.file(url, destfile = f, quiet = TRUE) :
>>>  internet routines cannot be loaded
>>> In addition: Warning message:
>>> In download.file(url, destfile = f, quiet = TRUE) :
>>>  unable to load shared object '/usr/local/lib/R/modules//internet.so':
>>>  /usr/local/lib/R/modules//internet.so: undefined symbol:
>> curl_multi_wait
>>> 
>>> 
> ls /usr/local/lib/R/modules/
> R_X11.so  R_de.so  internet.so  lapack.so
>>> 
>>> Thanks!
>>> 
>>> P
>>> 
>>>  [[alternative HTML version deleted]]
>>> 
>>> __
>>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>> 
>> 
>> 
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius
Alameda, CA, USA

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Vegemite Function is Cowardly refusing

2016-04-21 Thread Ansley Silva
R version 3.2.2.
library(vegan)

I was to look at community tables from my dendrograms and am trying out the
vegemite command.  This is the error I get:

Error in vegemite(apst, apst.clusters) :
  Cowardly refusing to use longer than 1 char symbols:
Use scale

I thought the problem was that I was using the log transformed data, but I
tried it on the raw (which is single digit numbers), and still no luck.
Any suggestions would be appreciated.




-- 
Ansley Silva


*"The clearest way into the Universe is through a forest wilderness." John
Muir*


*Graduate Research Assistant*

*University of Georgia*

*D.B. Warnell School of Forestry and Natural Resources*

*180 East Green Street*

*Athens, GA 30602*
data<-structure(list(necsur = c(1L, 4L, 0L, 8L, 0L, 1L), necame = c(4L, 
5L, 9L, 9L, 4L, 7L), niccar = c(1L, 1L, 1L, 2L, 1L, 4L), nicorb = c(2L, 
20L, 23L, 26L, 3L, 12L), nicpus = c(0L, 0L, 1L, 0L, 0L, 0L), 
nictor = c(0L, 2L, 1L, 3L, 2L, 1L), oicina = c(0L, 0L, 0L, 
0L, 0L, 0L), delgib = c(10L, 31L, 47L, 48L, 15L, 55L), cancha = c(5L, 
6L, 4L, 4L, 1L, 6L), melbis = c(3L, 0L, 1L, 3L, 0L, 1L), 
atelec = c(4L, 6L, 28L, 22L, 8L, 52L), copmin = c(0L, 0L, 
1L, 1L, 0L, 1L), ontcon = c(3L, 3L, 11L, 7L, 1L, 2L), ontdep = c(2L, 
0L, 0L, 0L, 0L, 0L), onthec = c(17L, 15L, 9L, 6L, 6L, 2L), 
ontstr = c(0L, 0L, 0L, 1L, 1L, 0L), onttau = c(20L, 13L, 
6L, 2L, 0L, 2L), ontpen = c(2L, 3L, 5L, 3L, 2L, 4L), onttub = c(2L, 
3L, 4L, 1L, 1L, 0L), ontsub = c(0L, 0L, 0L, 0L, 0L, 0L), 
phaign = c(0L, 0L, 0L, 0L, 0L, 0L), phavin = c(1L, 0L, 0L, 
0L, 0L, 1L), Phyili = c(0L, 0L, 0L, 0L, 0L, 1L), canvir = c(0L, 
1L, 0L, 0L, 0L, 0L), hybill = c(1L, 0L, 0L, 0L, 0L, 0L), 
chlema = c(0L, 0L, 0L, 0L, 0L, 0L), cyclev = c(0L, 0L, 0L, 
0L, 1L, 1L), dicdil = c(0L, 0L, 0L, 0L, 0L, 0L), galjan = c(0L, 
0L, 1L, 1L, 0L, 0L), cyclosig = c(0L, 0L, 0L, 0L, 1L, 0L), 
omomon = c(1L, 2L, 4L, 10L, 1L, 6L), trofov = c(1L, 2L, 3L, 
1L, 0L, 1L), trouni = c(1L, 0L, 0L, 1L, 0L, 0L), troter = c(0L, 
1L, 1L, 0L, 0L, 0L), eusass = c(9L, 8L, 23L, 14L, 11L, 28L
), hiscoe = c(2L, 1L, 10L, 4L, 2L, 4L), hisabb = c(0L, 0L, 
0L, 0L, 2L, 0L), sappen = c(0L, 0L, 0L, 0L, 0L, 0L), dercan = c(0L, 
0L, 0L, 0L, 0L, 0L), cremax = c(4L, 7L, 1L, 2L, 2L, 5L), 
plamac = c(1L, 0L, 3L, 2L, 2L, 2L), plafem = c(0L, 0L, 0L, 
0L, 0L, 0L), plafos = c(1L, 1L, 3L, 2L, 1L, 2L), placom = c(6L, 
3L, 3L, 10L, 13L, 7L), tacfim = c(0L, 0L, 1L, 0L, 0L, 0L), 
cicsex = c(0L, 0L, 0L, 0L, 0L, 0L), spsK = c(0L, 0L, 0L, 
0L, 0L, 0L)), .Names = c("necsur", "necame", "niccar", "nicorb", 
"nicpus", "nictor", "oicina", "delgib", "cancha", "melbis", "atelec", 
"copmin", "ontcon", "ontdep", "onthec", "ontstr", "onttau", "ontpen", 
"onttub", "ontsub", "phaign", "phavin", "Phyili", "canvir", "hybill", 
"chlema", "cyclev", "dicdil", "galjan", "cyclosig", "omomon", 
"trofov", "trouni", "troter", "eusass", "hiscoe", "hisabb", "sappen", 
"dercan", "cremax", "plamac", "plafem", "plafos", "placom", "tacfim", 
"cicsex", "spsK"), row.names = c("AP-0", "AP-100", "AP-200", 
"AP-300", "ST-0", "ST-100"), class = "data.frame")

apst.log <- decostand(apst, "log")
apst.bray <- vegdist(apst.log)
apst.clusters <- hclust(apst.bray, method = "average")
vegemite(apst, apst.clusters)

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Re: [R] Data reshaping with conditions

2016-04-21 Thread Jim Lemon
In R, square brackets [] are called "extraction operators" as they are
interpreted so as to "extract" the parts of an object specified by the
information within them. Your message contained only part of the line
below:

AltB<-svdatstr[row,indicesA][svdatstr[row,indicesA] wrote:
> Dear Jim,
>
> I hope, I am not pestering you. When I was studying your code to grasp and
> learn and found one thing which I can not understand the following line. I
> would be grateful If you could tell what it exactly denote and this helps me
> to grow better in R.
>
> I understand the first part of the code will check the rows of indicesA, but
> I finding difficulty to grasp the second part starting with the square
> bracket.
>
> "AltB<-svdatstr[row,indicesA][svdatstr[row,indicesA]"
>

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] installation problem on Ubuntu

2016-04-21 Thread Paul Tremblay
I was able to install the curl library with no problems. However, when I
tried to install ggplot (install.packages("ggplot2")), I got the same
message as earlier, that R can't load internet.so.

Thanks for your help!

On Wed, Apr 20, 2016 at 1:24 PM, Tom Wright  wrote:

> apt-get install curl libcurl4-openssl-dev
>
> On Wed, 2016-04-20 at 09:36 -0700, Paul Tremblay wrote:
> > I needed to update R so I could install ggplot. I am running Ubuntu
> 12.04.
> > I cannot upgrade Ubuntu because I am using a work computer.
> >
> > I tried upgrading the normal way:
> >
> > sudo apt-get update
> >  sudo apt-get install r-base r-base-dev
> >
> > But this only installed an earlier version. Finally I tried installing
> from
> > source (./configure, Make install). This worked. However, when I try to
> > install packages, I get this error:
> >
> > Error in download.file(url, destfile = f, quiet = TRUE) :
> >   internet routines cannot be loaded
> > In addition: Warning message:
> > In download.file(url, destfile = f, quiet = TRUE) :
> >   unable to load shared object '/usr/local/lib/R/modules//internet.so':
> >   /usr/local/lib/R/modules//internet.so: undefined symbol:
> curl_multi_wait
> >
> >
> > >> ls /usr/local/lib/R/modules/
> > >> R_X11.so  R_de.so  internet.so  lapack.so
> >
> > Thanks!
> >
> > P
> >
> >   [[alternative HTML version deleted]]
> >
> > __
> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
>
>

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] installation problem on Ubuntu

2016-04-21 Thread Ista Zahn
Hi Paul,

Please keep the list copied so that others might chime in with suggestions.

I'm afraid "no success" is too vague to be useful. What did you do,
and what errors did you encounter?

Best,
Ista

On Thu, Apr 21, 2016 at 1:48 PM, Paul Tremblay  wrote:
> Yes, I tried those instructions as well with no success.
>
> On Wed, Apr 20, 2016 at 12:45 PM, Ista Zahn  wrote:
>>
>> Hi Paul,
>>
>> Did you read the installation instructions for Ubuntu at
>> https://cloud.r-project.org/bin/linux/ubuntu/ ?
>>
>> Best,
>> Ista
>>
>>
>> On Wed, Apr 20, 2016 at 12:36 PM, Paul Tremblay 
>> wrote:
>> > I needed to update R so I could install ggplot. I am running Ubuntu
>> > 12.04.
>> > I cannot upgrade Ubuntu because I am using a work computer.
>> >
>> > I tried upgrading the normal way:
>> >
>> > sudo apt-get update
>> >  sudo apt-get install r-base r-base-dev
>> >
>> > But this only installed an earlier version. Finally I tried installing
>> > from
>> > source (./configure, Make install). This worked. However, when I try to
>> > install packages, I get this error:
>> >
>> > Error in download.file(url, destfile = f, quiet = TRUE) :
>> >   internet routines cannot be loaded
>> > In addition: Warning message:
>> > In download.file(url, destfile = f, quiet = TRUE) :
>> >   unable to load shared object '/usr/local/lib/R/modules//internet.so':
>> >   /usr/local/lib/R/modules//internet.so: undefined symbol:
>> > curl_multi_wait
>> >
>> >
>> >>> ls /usr/local/lib/R/modules/
>> >>> R_X11.so  R_de.so  internet.so  lapack.so
>> >
>> > Thanks!
>> >
>> > P
>> >
>> > [[alternative HTML version deleted]]
>> >
>> > __
>> > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>> > https://stat.ethz.ch/mailman/listinfo/r-help
>> > PLEASE do read the posting guide
>> > http://www.R-project.org/posting-guide.html
>> > and provide commented, minimal, self-contained, reproducible code.
>
>

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] [R-pkgs] Survival 2.39

2016-04-21 Thread Therneau, Terry M., Ph.D.
A new version of the survival package has been released.  The biggest change is stronger 
support for multi-state models, which is an outgrowth of their increasing use in my own 
practice. Interested users are directed to the "time dependent covariates" vignette for 
discussion of the tmerge and survSplit functions, which are useful tools to build the 
requisite data sets, and to the "multi-state" vignette for model fits and plots.


Terry Therneau

___
R-packages mailing list
r-packa...@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Mailing List

2016-04-21 Thread peter dalgaard

> On 21 Apr 2016, at 06:58 , Ogbos Okike  wrote:
> 
> Dear All,
> I am using R to do my work and thank you very much for developing,
> maintaining and making such excellent software available to anyone
> that is interested enough to ask for it.
> 
> I have registered at Nabble. I was wondering the right forum for me
> to send my help request. I have tried sending to R-help@r-project.org.
> However, I do receive a kind of warning email stating that my email
> awaits approval from the moderator since I am a non-member posting to
> membership email.
> 

If you send to r-help@r-project.org and just wait for a moderator to approve 
your post, it will get here eventually. r-help-request is a dead end.

However, the canonical way is to subscribe to the mailing list. You do this 
using the link in the footer  (same one as for unsubscribing). Notice that you 
can select to get the list in digest format (1 mail per day) or - as I think 
most do - set up a filter rule in your mail reader to send messages to a 
separate mailbox.

It is somewhat unfortunate that we have had to make unmoderated posting 
members-only, but the amount of spam from non-member accounts is overwhelming 
and the spam filters would inevitably let some false negatives through. (Even 
member messages get held for approval from time to time due to false positives 
in the filters.)

The Nabble interface was made unidirectional some months ago. This happened 
because too many people didn't understand the differences between a forum and a 
mailing list. 

-pd



> Can any one please direct me to the right forum for me. My problem
> range from plotting graph using R, statistics in R, etc. You could
> have seen some of my request this few days.
> 
> Thank you for your time.
> Ogbos
> 
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd@cbs.dk  Priv: pda...@gmail.com

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.