[R] Request for Help with Specifying Priors for MCMC Logit

2015-02-18 Thread Dinesh Mathur S
matrix as a prior precision? Can you please provide me any document which has examples related to specifying priors as a column vector? Your help in this regard is highly appreciated. Regards, Dinesh [[alternative HTML version deleted]] __ R-help@r

[R] Invisible Printing

2014-12-12 Thread Dinesh Chowdhary
R 3.1.2 Dear good people I have a very generic question, and please excuse me for the informal format of presenting it? Is invisible printing still persistent in the latest version of R. why to use `invisible(x)` ? Thanking you in anticipation Dinesh [[alternative HTML version

[R] Subsetting R 3.1.2

2014-12-05 Thread Dinesh Chowdhary
> x <- list(seq = 3:7, alpha = c("a", "b", "c")) > x$alpha [1] "a" "b" "c" > x["alpha"] $alpha [1] "a" "b" "c" > x[c(1,2)] $seq [1] 3 4 5 6 7 $alpha [1] "a" "b" "c" *> x[c(1, alpha[2])]* *$* *NULL* *$* *NULL* How to access a character subset withing a list? Thank you for your effort...

[R] Factors and NaN

2014-12-05 Thread Dinesh Chowdhary
R-3.1.2 > x <- factor(c("yes", "yes", "no", NA, "yes", "no", NaN)) > x [1] yes yes noyes no NaN Levels: NaN no yes > is.nan(x) [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE >From the above snippet can you notice that the "NaN" value is not logically identified in a vector? Can anyone ela

[R] error in building R-2.15.3: configure: error: linking to Fortran libraries from C fails

2014-02-04 Thread Dinesh
Hi, I am trying to build R-2.15.3 and get the following error in /configure --with-readline --enable-R-shlib checking for dummy main to link with Fortran 77 libraries... unknown configure: error: in `/home/dinesh/R-build/R-2.15.3': configure: error: linking to Fortran libraries from C

[R] Fw: Remove from mailing list

2013-06-26 Thread dinesh wadhwani
not subscribed via email. please help. - Forwarded Message - From: dinesh wadhwani To: "r-help-ow...@r-project.org" Sent: Wednesday, June 26, 2013 10:19 PM Subject: Fw: Remove from mailing list Please help - I have tried several time and ways to stop these emails but kee

[R] getting error in Rpad::json()

2012-07-24 Thread Dinesh K. Somani
on" > Rpad::json(list(x=numeric(0))) Error in res[i] <- json(x[[i]]) : replacement has length zero > traceback() 2: json.list(list(x = numeric(0))) 1: Rpad::json(list(x = numeric(0))) Am I not using the right package/function or options? Will appreciate help. Thanks and regards Dine

Re: [R] need help with unlist(), losing NULL values

2012-06-20 Thread dinesh
uot;query":{"A":20, "B":null, "C":"hello again"}}') > as.matrix(t(sapply(foo, function(s) s))) A BC query 10 NULL "hello" query 20 NULL "hello again" Regards Dinesh On 6/19/2012 8:50 PM, David Winsemius wrote: On

[R] need help with unlist(), losing NULL values

2012-06-19 Thread dinesh
"B". It gets worse if some of the B's are not null, and if I were really unlucky then matrix() would not fail but data will be messed up. My question is - is there a different way of using unlist() that I am missing? Is there a better way of getting this data in a rectangul

[R] Help needed for this error

2012-05-30 Thread Dinesh Vakamudi
ckage = "wavelets")' into a data.frame I am not able to access data stored in results. -- Dinesh Vakamudi Statistics and Informatics, Department of Mathematics,IIT Kharagpur. Email id: dinesh.vakam...@gmail.com Phone no: (+91) 9775550061 [[alternative HTML version deleted

Re: [R] RJMCMC.

2012-05-09 Thread DINESH
Dennis Murphy gmail.com> writes: > > Hi: > > library(sos) # install first if you don't already have it > > findFn('reversible jump') > > It appears that a good starting point might be the RJaCGH package, > which is concerned with reversible jump MCMC in CGH arrays. Other > possiblilit

[R] how to compute srt value to text along a line

2012-02-24 Thread dinesh
Hi I want to draw a line between two points p1 and p2 (no problems) and then print text it along its path (facing problems). I use grconvertX() to compute the slope E.g., arrows(p1.x, p1.y, p2.x., p2.y); # p2 is on right of p1 vert = grconvertX( c(p2.y, p1.y), from="user", to="inches

Re: [R] trouble installing packages on OpenSuse 11.4

2011-08-17 Thread Dinesh
;CRAN"] = "http://cran.r-project.org";; #and then install each package one by one, just to figure out any external dependencies: install.packages( "x", repo=repos) It turns out I had to install both gcc and fortran, but using zypper that was easy. Regards Dinesh On 8/1

[R] cannot get to R2.13 using zypper in OpenSuse 11.4

2011-08-16 Thread Dinesh
script for a number of machines. || -- Regards, Dinesh [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

[R] trouble installing packages on OpenSuse 11.4

2011-08-16 Thread Dinesh
n figuring this out. Ideally, I would ideally to run R CMD INSTALL or R CMD BATCH with a short command file so that I can configure a new machine via a script. I also tried to download the tarballs - but then figuring out all the dependencies gets very messy. Besides, that would be, like,

[R] packages to download from yahoo finance

2009-10-10 Thread dinesh . somani
to find something like this. However, I am confident this problem has already been solved! Thanks a lot. Dinesh __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org

[R] need help converting data.frame to time series

2009-02-03 Thread Somani, Dinesh K
your help in resolving these issues, namely - why am I losing DATE and STOCK - how can I get a proper time series out of it Thanks a lot Dinesh. __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posti

[R] need help combining two datasets

2009-01-27 Thread Somani, Dinesh K
, so that I can run some analyses for the overlapping date ranges and stocks. I know how to do this using a database but is there an equivalent way to perform a similar kind of join in R? Data size is small - just a few years worth of daily data. Would appreciate your help. Thanks a lot Dinesh

[R] similarity matrix to dendrogram (GML format)

2008-11-25 Thread dinesh kumar
Dear R users I have a similarity matrix of 100X100 (chemical similarity). Now I want to create a dendrogram from it and export this dendrogram as GML format network. Can you please reply How I can do this stuff? Thanks in advance. Dinesh -- Dinesh Kumar Barupal Junior Specialist Metabolomics

[R] Reshape a matrix

2008-11-05 Thread dinesh kumar
Dear R users, I have a matrix like A X1 B Y2 C Z3 I want to reshape this matrix into this format X Y Z A 1 B 2 C 3 Thanks in advance for your help. Dinesh -- Dinesh Kumar Barupal Junior Specialist Metabolomics Fiehn Lab

[R] Igraph library: How to calculate APSP (shortest path matrix) matrix for a subset list of nodes.

2008-08-24 Thread dinesh kumar
Dear R Users, I have a network of 25000 total nodes and a list of 500 node which is a subset of all nodes. Now I want to calculate the APSP (all pair shortest path) matrix only for these 500 nodes. I would appreciate any help. Thanks in advance Dinesh -- Dinesh Kumar Barupal Research Associate

[R] Two Colored Heatmap

2008-04-14 Thread dinesh kumar
NoUp Down No TrehaloseNo UpUp Down Up First raw and first column are labels. Each column present a condition. I want to create a heatmap which colored UP = RED, Down= Blue and No= White. Thanks in Advance. Dinesh -- Dinesh Kumar Barupal Research

[R] Alignment and Reshaping of the matrix

2008-03-29 Thread dinesh kumar
Where first column represent the Variable name. And if the first matrix is transposed, then how to get the output in which First raw present the variable name. It will be great help for my research. Dinesh -- Dinesh Kumar Barupal Research Associate Metabolomics Fiehn Lab UCD Genome Center 451

[R] Subset of matrix

2008-03-24 Thread dinesh kumar
145742 1123 I would appreciate if you can use this matrix as input. Thanks in advance. Dinesh -- Dinesh Kumar Barupal Research Associate Metabolomics Fiehn Lab UCD Genome Center 451 East Health Science Drive GBSF Builidng University of California DAVIS 95616 http://fiehnlab.ucdavis.edu

[R] For Subset or Reshaping the Table

2008-02-14 Thread dinesh kumar
matrix in this format Row Col Value a D 4 a E 5 a F 6 .. .. e E 9 I want only the pair which pass a threshold for example >3. Please help me. Dinesh -- Dinesh Kumar Barupal Research Associate Metabolomics Fiehn Lab UCD Genome Center