Re: [R] Problem in installing simba package

2015-07-15 Thread Jeff Newmiller
Wait? Try a different server? Verify your internet settings? --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go...

[R] convert character vector to decimal for numeric testing

2015-07-15 Thread Luigi Marongiu
Dear all, I have a vector that comes from some calculations I am making and this vectors turns out to be in character format rather than numerical. I can convert it in numerical format but then the calculations are not correct, as you can see in the following example. I was also expecting that roun

[R] rgl 3d surface

2015-07-15 Thread AURORA GONZALEZ VIDAL
Hello. I am trying to plot a 3d surface given its equation. The R code is written in blue. So, let's say that I have the points x,y,z and I plot them. Also, I compute its regression surface doing polynomical regression (fit) library('rgl') x <- c(-32.09652, -28.79491, -25.48977, -23.18746,-20.889

[R] ‘ips’ had non-zero exit status

2015-07-15 Thread giovanni_gmail
dear all, sorry for the naive question, I'm trying to install (in R version 3.2.1 (2015-06-18)) the "ips" package for phylogenetic analysis. However I get the following message: > install.packages("ips",dependencies = T) Installing package into ‘/home/giovanni/R/x86_64-pc-linux-gnu-library/3.

[R] Jaccard index

2015-07-15 Thread sreenath
How can i find jaccard index of two groups,which package is to be used? please help -- View this message in context: http://r.789695.n4.nabble.com/Jaccard-index-tp4709883.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-proje

[R] cronbachs alpha and missing values

2015-07-15 Thread penv254
i want to calculate cronbachs alpha for my df. my df has some missing values so that there are only 23 out of 56 complete cases. if i run alpha on only the complete cases, i get a value of .79 and if i run it on the whole df, I get .82. My question is: what does alpha do with those missing values,

Re: [R] rgl 3d surface

2015-07-15 Thread Duncan Murdoch
On 15/07/2015 7:16 AM, AURORA GONZALEZ VIDAL wrote: > Hello. > > I am trying to plot a 3d surface given its equation. The R code is written > in blue. > So, let's say that I have the points x,y,z and I plot them. Also, I compute > its regression surface doing polynomical regression (fit) > > libr

Re: [R] Jaccard index

2015-07-15 Thread Meyners, Michael
Did you search the internet? At first attempt, vegdist {vegan}(worked well for me in the past) and dist.binary {ade4} seem to offer what you need. HTH, Michael > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of sreenath > Sent: Mittwoch, 15. J

Re: [R] Jaccard index

2015-07-15 Thread Berend Hasselman
> On 15-07-2015, at 09:35, sreenath wrote: > > How can i find jaccard index of two groups,which package is to be used? > please help library(sos) findFn(“jaccard”) gives many links. Berend __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and

Re: [R] convert character vector to decimal for numeric testing

2015-07-15 Thread jim holtman
It does round to 3 digits, but since the last one is a zero, is only prints 5.43 and not 5.430. Why do you want the last zero? Is this going into a report or something? You can always use sprintf: > x <-round(5.43, 3) > x [1] 5.43 > sprintf("%.3f", x) [1] "5.430" > BTW you are converting your

[R] error message in package "FD", function dbFD ()

2015-07-15 Thread lauraRIG
Dear R community, I have some trouble with the dbFD function in the FD package. > str(a) 'data.frame':150 obs. of 48 variables: > str(x) 'data.frame':48 obs. of 9 variables: ex1 <- dbFD(x,a) Error in dbFD(x, a) : Species labels in 'x' and 'a' need to be identical and ordered alphab

[R] nls singular gradient matrix with an integrand

2015-07-15 Thread Laura Teresa Corredor Bohórquez
Hi. I am trying to make a nls fit for a little bit complicated expression that includes two integrals (please find enclosed the equations). I got the error "Error in nlsModel(formula, mf, start, wts) : singular gradient matrix at initial parameter estimates". First of all, I have searched already

Re: [R] cronbachs alpha and missing values

2015-07-15 Thread Jeff Newmiller
Sorry, ESP not functioning. Reproducible example missing. There is always more than one way to do things in R, so you need to be specific. Protip: learn to use the help system. For example, of the function you are using is called alpha, then type ?alpha at the R prompt and read. If the functio

Re: [R] error message in package "FD", function dbFD ()

2015-07-15 Thread Jeff Newmiller
Thank you for making an effort, but your example is still not reproducible. Study something like [1] for more clarity on how to communicate online. Problems that you encounter in getting your data into R are different than problems with the functions in base R or contributed packages, and a rep

Re: [R] error message in package "FD", function dbFD ()

2015-07-15 Thread William Dunlap
Try doing rownames(x) <- x["Species"] before running dbFD. The function is probably using the row and column names of its inputs as species names, not a certain row or column of the data. Bill Dunlap TIBCO Software wdunlap tibco.com On Wed, Jul 15, 2015 at 6:47 AM, lauraRIG wrote: > Dear R

Re: [R] ‘ips’ had non-zero exit status

2015-07-15 Thread Jeff Newmiller
Your error says the XML package was not installed because you are missing "xml2-config"... if you search the web for that term you will find that your operating system needs to have libxml2 installed, including the development tools. There is a SystemRequirements entry on the CRAN web page for t

Re: [R] nls singular gradient matrix with an integrand

2015-07-15 Thread Jeff Newmiller
Very few attachment types are permitted on the R mailing lists... apparently whatever file you attached did not qualify. --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#.

[R] multi core procesing

2015-07-15 Thread Vyshnnavi Parthasarathy
Hello, I am using a 8 core processor system. Is there a way to run different R scripts on different cores instead of all scripts running on the same core? If I open a new RStudio session for each script, can I somehow assign each Rstudio session to a particular core processor so as to make the proc

Re: [R] multi core procesing

2015-07-15 Thread Duncan Murdoch
On 15/07/2015 2:33 PM, Vyshnnavi Parthasarathy wrote: > Hello, > I am using a 8 core processor system. Is there a way to run different R > scripts on different cores instead of all scripts running on the same core? > If I open a new RStudio session for each script, can I somehow assign each > Rstud

[R] Help - Group Subsector Weighted Average

2015-07-15 Thread dmw
Hi, I am new to this forum and R in general. I have a database that I would like to analyze. My ultimate goal is to show the weighted average of each security in its sector to its predecessor Sector level. I want it to be as granular as possible. For example: Weighted average of Industrials (

[R] Seeing Build Commands when running "R CMD INSTALL "

2015-07-15 Thread Navraj Singh
Hello, I was trying to build a package from source (specifically the 'rzmq' package) on the following platform: Mac OS X 10.8.5 (Mountain Lion) R: version 3.2.1 rzmq: version 0.7.7 (obtained from the github repo for this package) The reason I want to build this from source is that there is no bi

[R] Assigning fate percent to plots

2015-07-15 Thread Robin Gropp
Hi. I have a big data set which could be represented something like this: *plot fate* 1 S 2 M 3 S 3 S 3 M 4 S 4 S 5 S 5 M 5 S 5 S 6 M 7 M where plot is a location, and fate is either "surv

Re: [R] Seeing Build Commands when running "R CMD INSTALL "

2015-07-15 Thread Duncan Murdoch
On 15/07/2015 1:25 PM, Navraj Singh wrote: > Hello, > > I was trying to build a package from source (specifically the 'rzmq' > package) on the following platform: > > Mac OS X 10.8.5 (Mountain Lion) > R: version 3.2.1 > rzmq: version 0.7.7 (obtained from the github repo for this package) > > The

Re: [R] Assigning fate percent to plots

2015-07-15 Thread David Winsemius
On Jul 15, 2015, at 12:12 PM, Robin Gropp wrote: > Hi. > > I have a big data set which could be represented something like this: > > *plot fate* > 1 S > 2 M > 3 S > 3 S > 3 M > 4 S > 4 S > 5 S > 5 M > 5 S > 5

[R] Speeding up code?

2015-07-15 Thread Ignacio Martinez
Hi R-Help! I'm hoping that some of you may give me some tips that could make my code more efficient. More precisely, I would like to make the answer to my stakoverflow question more efficient

Re: [R] problem understanding grid coordinate systems

2015-07-15 Thread Johannes Huesing
Paul Murrell [Wed, Jul 15, 2015 at 11:12:33PM CEST]: ... downViewport("plot_01.panel.1.1.vp") ... This works like a charm. Thank you! Upon reading more of the documentation, I found that current.vpTree() shows all names of active viewports. -- Johannes Hüsing There is somethin

Re: [R] Speeding up code?

2015-07-15 Thread Collin Lynch
Hi Ignacio, If I am reading your code correctly then the top while loop is essentially seeking to select a random set of names from the original set, then using unique to reduce it down, you then iterate until you have built your quota. Ultimately this results in a very inefficient attempt at samp

[R] R-package TDA- RipsDiag issues

2015-07-15 Thread lstat
Hi there, I was hoping you could help me out with the following: - I am trying to compute the diagram of a Rips filtration built on top of a point cloud. I've gone through several tutorials, and I always get the same answer as the tutorial. Let's say I am inputting an n by d matrix of coordinates

[R] Problem Regarding R Packages installation

2015-07-15 Thread Muhammad Sohail Raza
Hi Everyone! I am trying to install R Package "VariantAnnotation". I entered commands: source("http://bioconductor.org/biocLite.R";) biocLite("VariantAnnotation") But i am getting the following errors, ERROR: configuration failed for package �XML� * removing �/usr/lib64/R/library/XML� * insta