Displaying 20 results from an estimated 4000 matches similar to: "binning by frequency"
2011 Apr 19
2
cut & histogram
Dear Rxperts,
Below is a small sample of values (cut short due to space considerations
while posting).. I was wondering if it is possible to construct boundaries
(or intervals) based on the distribution of points. Is it anything similar
to boundary detection of distributions?
x1 <-
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]]
2012 Oct 03
3
"options" in R
Dear Rxperts,
Was wondering if there is any function in R similar to
options("time.zone"): found in S-Plus that can help in looking at the
default timezone settings..
Thanks much,
Santosh
[
[[alternative HTML version deleted]]
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 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 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;",
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]]
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 <-
2013 Apr 23
2
Tables package - remove NAs and NaN
Dear Rxperts,
q <- data.frame(p=rep(c("A","B"),each=10,len=30),
a=rep(c(1,2,3),each=10),id=seq(30),
b=round(runif(30,10,20)),
c=round(runif(30,40,70)))
The operation below...
tabular(((p=factor(p))*(a=factor(a))+1) ~ (N = 1) + (b + c)*
(mean+sd),data=q)
yields some rows of NAs and NaN as shown below
b c
p a N mean sd mean sd
A 1 10
2011 Apr 27
2
sub-matrix block size
Dear Rxperts
Below is a small vector of values of zeros and non-zeros... was wondering if
there is an efficient way to get the block sizes of submatrices of a big
matrix similar to the one shown below? diagonal elements can be zero too.
Rows with only a diagonal element may be considered as a unit block size.
c(1,0,0,0,0,0,0,0,0,0,0,
1,1,0,0,0,0,0,0,0,0,0,
0,0,1,0,0,0,0,0,0,0,0,
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..
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]]
2013 Apr 22
1
Hmisc & pdflatex
Dear Rxperts,
Apologize for posting it to a wrong thread..Hence, the re-post...
I am trying to use pdflatex from Hmisc, I get the error message. "pdflatex
is not available"... The version of Hmisc is the latest one (got the
warning that it was compiled under R version 2.15.3) .
The version of R on my machine is
> version
platform i386-w64-mingw32
arch i386
os
2013 May 02
1
Create and read symbolic links in Windows
Dear Rxperts..
Got a couple of quick q's..
I am using R in windows environment (both 32-bit and 64-bit)
a) Is there a way to create symbolic links to some data files?
b) How do I read data from symbolic links?
Thanks so much..
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
2012 Jun 06
1
Process XML files
Hello experts,
Sorry for posting the SPlus related question here.. I have not found any
solution yet after some attempts and hence, sending it to a wider spectrum
of users! I was successful in processing files uing R's XML librariy. Thank
you, Rxperts!
I know there are libraries like XML and SPXML available in S-Plus. Could
anyone please share examples of reading an xml file and save the
2012 Sep 06
1
Package installation errors
Dear Rxperts..
I am trying to install a few packages in R (version 2.14.2) on a *64-bit
Window 7* workstation. Some of the errors are posted below.. Both 32-bit
and 64-bit versions of R were installed. I did not get errors while
installing packages through *32-bit R*, except that it could not update
some of the packages (already installed with 64-bit R)
*A*) When I start *64-bit R (2.14.2)*
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 =
2017 Nov 26
1
installing "rgl" package
Hi Rxperts,
I tried with r-cran-rgl (based on the default installation of Ubuntu) with
reinstalled rgl package from R-forge.. I get the missing GL/gl.h header.
Didn't reinstall Mesa libraries per recommendations of Duncan.
* installing *source* package ?rgl? ...** package ?rgl? successfully
unpacked and MD5 sums checkedchecking for gcc... gcc -std=gnu99
checking whether the C compiler
2017 Nov 23
5
installing "rgl" package
Hi Rxperts,
I am trying to install 'rgl' package in Ubuntu.. Would highly appreciate
your assistance .. I tried several leads available on various discussion
fora and nothing helped so far.
* installing *source* package ?rgl? ...checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of