search for: santosh2005

Displaying 20 results from an estimated 51 matches for "santosh2005".

2012 Jul 21
2
library XML in R version 2.15.1
Hello Rxperts.. I have a peculiar situation.. XML library is not available with R2.15.1 whereas I was able to install it with R version 2.13.1. Would highly appreciate your suggestions. I am now trying to see if XML works with previous versions of R. Thanks, Santosh [[alternative HTML version deleted]]
2011 Apr 08
2
a bug in "write.csv"?
Dear Rxperts! A simple example where "write.csv" does not seem to accept user specified arguments.. Why? write.csv(t(1:10),"./te1.csv",quo=F,col.names=F) Warning message: In write.csv(t(1:10), "./te1.csv", quo = F, col.names = F) : attempt to set 'col.names' ignored However, write.table does fine..
2010 Apr 29
3
control span in panel.loess in xyplot
Dear R gurus.. Is it possible to control span settings for different values of a grouping variable, when using xyplot? an example code shown below d=data.frame(x=rep(sample(1:5,rep=F),10),y=rnorm(50),z=rep(sample(LETTERS[1:2],rep=F),25)) xyplot(y~x,data=d,groups=z,panel=panel.superpose,panel.groups=panel.loess(span=c(2/3, 3/4,1/2)) or something like..
2013 Mar 13
7
Export R generated tables and figures to MS Word
Dear Rxperts, I am aware of Sweave that generates reports into a pdf, but do know of any tools to generate to export to a MS Word document... Is there a way to use R to generate and export report/publication quality tables and figures and export them to MS word (for reporting purposes)? Thanks so much, Santosh [[alternative HTML version deleted]]
2013 Sep 26
2
Read shortcuts of MS Excel files through R
Dear Rxperts, Through Windows OS, I created shortcuts (paste as shortcut) to excel spreadsheets ( with "xlsx" as the file extension). I wasn't able to read the shortcuts through R and using "read" functions of "xlsx" package. exf <- "a1.xlsx.lnk" > read.xlsx(exf,1) Error in .jcall("RJavaTools", "Ljava/lang/Object;",
2010 Mar 19
2
sapply, lattice functions
Dear R-gurus aa <- data.frame(a1=rnorm(20),b1=rnorm(20,0.8),c1=rnorm(20,0.5)) sapply(aa,function(x) histogram(x,breaks=NULL)) or px <- sapply(aa,function(x) histogram(x,breaks=NULL)) print(px,split=c(1,1,1,1),more=F) The above code does not seem to work. am I missing something? Thanks, Santosh [[alternative HTML version deleted]]
2017 Nov 26
1
installing "rgl" package
...presence... no checking for GL/glu.h... noconfigure: error: missing required header GL/gl.hERROR: configuration failed for package ?rgl? * removing ?/data/R/lib/rgl?Warning in install.packages : installation of package ?rgl? had non-zero exit status On Fri, Nov 24, 2017 at 3:45 PM, Santosh <santosh2005 at gmail.com> wrote: > Hi Duncan, > Thanks for the suggestions. How do I uninstall mesa related installations? > Do I need to uninstall all of "mesa" or only the specific ones? > > Santosh > > On Fri, Nov 24, 2017 at 3:05 PM, Duncan Murdoch <murdoch.duncan at g...
2010 Jul 29
1
package xpose4 in Vista - Update
...se4 (version 4.2.1) with the latest R version.(2.11.1)... I didn't face such installation problems when using version R.2.10.1 Would really appreciate your assistance in debugging installation of xpose 4..2.1 with R.2.11.1 Thanks again.. -Santosh On Wed, Jul 28, 2010 at 12:46 PM, Santosh <santosh2005@gmail.com> wrote: > Dear R experts... > I would really appreciate your suggestions in installing a package in > Windows Vista... > > I am unable to install a package on a windows vista based computer, in > spite of running it as an administrator. The package "xpose4.2.1&q...
2009 Sep 19
1
Re-order columns
Dear R'sians, Would really appreciate if you could suggest a more efficient way to order the columns of a dataset. The column names of the dataset contain indices separated by a period. Following are examples of my code and the dataset. oC <- function(tg=x2) { lth <- length(grep("T",names(tg))) thix <-
2009 Nov 21
3
"subset" or "condition" as argument to a function
Dear Rxperts! I was wondering if it is possible to write a function which can take in argument of a subset or condition.. Of course, I am aware of the alternate methods like coplot, par.plot, xyplot etc... I am specifically interested in using conditions/subsets with "plot".. A simple fragmented example is shown here.. pltit <- function(y,x,dat,dat1,dat2,sbst) { plot(y~x, data=dat,
2013 Jun 10
1
Using Lattice, LatticeExtra - Hide right and top axes in multipanel plots
Dear Rxperts, How do I hide the top and right axes in multiple panel plots? A couple of examples are provided below.. Would highly appreciate appreciate your assistance.. #Example 1 library(latticeExtra) xyplot((1:200)/20 ~ (1:200)/20, type = c("p", "g"), scales = list(x = list(log = 2,alternating=0), y = list(log = 10,alternating=0)), xscale.components =
2009 May 01
1
locating rcmd.exe through a batch script
Dear R-sians! The following command works fine on Dos Prompt, but not in a windows batch script... dir /S /B C:\Progra~1\R\R* |findstr /I "rcmd.exe" |findstr /I "2.8.1" how do I implement the above in a windows batch script? I tried to use: for /F "usebackq tokens=*" %%i in (`dir /S /B C:\Progra~1\R\R* |findstr /I "rcmd.exe" |findstr /I
2009 Jul 15
2
Correlation question (from a newbie)
Hi R-users, Was wondering if there is a way to quickly compute correlations between continuous variables grouped by some categorical variables? What function do I use? Thanks much in advance. Regards, Santosh [[alternative HTML version deleted]]
2010 Jan 29
1
Barplot/Histogram (lattice)
Dear Rxperts.. what settings in barplot and histogram do I use, to show bars in an monotonously increasing or decreasing order of the frequency of a categorical variable? an example is provided below.. histogram(~factor(sample(letters,200,rep=T))) I was able to get it in 3 - 4 steps.. l a1 <- sample(letter,200,rep=T) a2 <- table(a1) barplot(a2); barplot(sort(a2)) # all variables are not
2008 Oct 29
1
strptime and strftime
Dear R experts.. I am trying to understand what exactly strptime and strftime do... Where can I look for the detailed notes on these two functions? In addition, how POSIX functions like POSIXct and POSIXlt are used in these functions? Regards, Santosh [[alternative HTML version deleted]]
2009 Sep 14
2
using filter while Reading files -
Dear R'sians.. I apologize if this topic has been beaten to death and hope that hawks don't pounce on me! Could you please suggest an efficient way to filter rows from 500+ text files (some with 30000+ rows with multiple section table headers) residing in several folders? I guess probably "scan" is the fastest way to scan a file, but, I noticed it sometimes takes a long time
2013 Mar 26
2
suggestions about import SAS Transport files to R.
Dear Rxperts! My colleagues used SAS PROC COPY to generate the xpt files that could be read by the available "xpt" file reading packages in R. However, I am unable to use the R packages for reading SAS transport files generated through SAS PROC CPORT. I have tried SASxport, Hmisc, and foreign. Any ideas/suggestions are more than welcome! Thanks so much! Santosh [[alternative HTML
2013 Apr 25
2
RStudio.. text editor
Dear Rxperts/RStudio users, Is there a way to set tabs (the TAB key) in the text editor of RStudio, similar to the way customization can be done in Tinn-R? Thanks and regards, Santosh [[alternative HTML version deleted]]
2009 Sep 07
1
Scan and read.table
Dear R experts.. I am trying to read data-sections in a large consolidated dataset, containing section headers and the data . There are many options available to implement, I was wondering what optimal function, to extract section headers and data (w/ columns), could be used on the dataset that looks like as provided at the end of this email? In each section of a dataset, 1st line of the section
2013 May 02
3
Lattice xyplot multipanels
Derar Rxperts, I have a strange situation.. I see curly brackets around "strip.levels" in multipanel strips while using lattice::xyplot. .How do I get rid of the curly brackets? For some reason, I am not able to reproduce the problem using an example below... Any suggestions are highly welcome! Thanks, Santosh q <-