Displaying 20 results from an estimated 100 matches similar to: "Supressing empty sections with Sweave"
2007 Jul 06
3
?replace characters within vector data
Hi List,
I want replace characters within a vector. Outside R I could use sed,
but I'd like to automate it in R. For example
vectorx
xxxyyz
xxxyyza
xxxyyzzb
I want to change to:
vectorx
aaayyz
aaayyza
aaayyzzb
The obvious replace command only deals with whole data entries?
Any hints would be appreciated.
Thanks
Herry
2005 Dec 16
1
Vector of matrix
Dear statisticians,
I would like to save results for a "for loop" in a vector previously created.
My result would be of class "matrix".
I tried the following script:
Script:
#Creation of a previous vector
n.Tree<-2
VectorX<-rep(1,n.Tree)
#loop
for (i in 1:2) {
Ti<-MatOccurTree[Tree[i],1] #number of observation for Tree i
Xi<-matrix(data=1,nrow=Ti,ncol=2)
2005 Feb 24
2
OT - C structure question
I hae tried searching the web for the answer, but, man is there a lot of
pages ... :(
in the language I develop in, if I have a structure I can dynamically
refer to the contents of a field of the structure like so:
MESSAGE SomeStructure:Field(SomeFieldName):Value
where SomeFieldName is either a quoted constant or a variable expressions
In "C", I beleive that you can refer to
2010 Jul 22
1
pagebreak in xtable and columns'width
Dear list,
I'm using the Sweave function in order to get some report.
Here one chunk:
<<echo=F,results=tex>>=
report<-lapply(repor, function(x) {
(print(xtable(data.frame(x[1:2,]), align="|l|rrr|"),floating=FALSE,tabular.
environment="longtable",include.colnames=FALSE,size="\\small"))
2009 Mar 24
0
Patch: clickHandlers in VirtualEarth
Hi,
my mapstraction onclick event handlers always yielded javascript
errors in Virtual Earth maps ("e.view is undefined").
I''m using version 6 of mapcontrol.ashx. After consulting Virtual Earth
documentation, I came up with a solution.
Here is my patch (based on rev 212)
> var that = this;
360c361,368
< me.clickHandler(e.view.LatLong.Latitude,
2010 May 28
3
how to create automatically names for vectors in a loop?
Hi,
I want to generate a number of vectors and store them with different names, like this:
x=1
while (x<100)
{
vector#x# = rnorm(100)
x=x+1
}
where each vector has, at its hand, instead of #x# a number which goes from 1 to 99.
How can I do this?
Thanks
Gabriele Zoppoli, MD
Ph.D. Fellow, Experimental and Clinical Oncology and Hematology, University of Genova, Genova, Italy
Guest
2012 Apr 02
1
Unwanted page break in Rd2pdf
Hi,
I want to create a pdf of my Man-pages from my package.
Therefore I run in the terminal Rd2pdf on the package and
a pdf of all the pages is created.
After the titlepage there is the general package page, which includes
"Description" and "Details" etc. Unfortunately after the Subtitle "Details" there is a pagebreak (and 3/4 white page) which I did not set
2003 Jul 21
2
missing permissions in reference manual copyright page (PR#3528)
Hi,
I noticed that the R reference manual seems to be missing the license
permissions on the copyright page. Below is a patch to "refman.top"
which adds the same permissions as the @permission{} macro in
"R-defs.texi".
I'm filing this bug as I have been preparing to publish the R
Reference Manual (in several volumes). I plan to donate 5 EUR to the
R-foundation for each
2009 May 20
1
Supressing the enumeration of output in console
Hi!
Pretty low content question but I've had major trouble finding an answer for
it so I hope it's alright.
I'm obviously new to R, and have been trying to get rid of the numerated
output I get in the console.
What I mean more specifically is that
X<-4;X
comes out as
[1] 4
and I'd like to get rid of the listing [1].
This isn't usually a problem when working with the
2010 May 06
3
Supressing axes 3 and 4 when using plot()
Is there a way of doing this? I'm using plot() to produce a scatter of
my data, but it routinely defaults to plotting 2 sets of x axes and 2
y axes. I'd like to not plot the upper and rightmost axes. I can use
'axes=F', and then manually add axes with 'axis', but then the newly
created axes do not intercept.
TIA,
Dan
2007 Oct 07
0
Supressing RDoc links
I recently noticed some anomalies in the Mocha RDoc. Within a method RDoc
comment, any word that happens to be the same as a method in the same class
gets turned into a link. You can see an example [2] with the word "once" and
another [3] with the words "yields", "times" and "with".
Does anyone know how to stop these words incorrectly being made into
2008 Jan 16
0
Supressing error messages on try function
Hi!
Why do I still get an error message on the try function?:
> options(show.error.messages = FALSE)
>
> trab <-matrix(nrow=6,ncol=6)
> trab[,] <-0.0001
> rownames(trab) <- c("A","B","C","D","E","I")
> colnames(trab) <-
2000 Mar 23
0
supressing output of netlogon scripts.
Hello,
I've got roaming profiles set up on my machines, that load and run
netlogon scripts that do various things. I would like there output
suppressed, i.e. I don't want to even see the dos box, I just want the
things to do there job and go on. Is this possible?
Thanks.
Dave.
________________________________________________________________
YOU'RE PAYING TOO MUCH FOR THE INTERNET!
2009 Dec 15
1
Supressing Scientific Notation
I'm trying to display my deciles without scientific notation, but have not found an option that will allow me to do so. According to web searches, the options(scipen=999) should remove scientific notation, but it seems not too. Does this option work with quantcut function? Is there any other option that can be used? I am using verison 2.10.0.
library(gtools)
library(gdata)
2005 Jul 10
3
not supressing leading zeros when reading a table?
Dear R list,
I have a dataset with a column which should be read as character, like this:
name surname answer
1 xx yyy "00100"
2 rrr hhh "01"
When reading this dataset with read.table, I get
1 xx yyy 100
2 rrr hhh 1
The string column consists in answers to multiple choice questions, not all
having the same number of answers. I could format the
2001 Mar 15
1
supressing linefeed at end of file
Hello,
I want to do simulations with an external simulation model. For this
purpose I wrote a R-script which makes the pre- and post-processing of
the data (generate scenarios, analyze results).
The R-script writes the input file for the simulation with e.g.
write(x, file="test.dat", ncolumns=10)
The problem is, however, that this command (and even constructions with
cat) will add a
2006 Nov 06
3
HtmlWindow and friends
Hi
Attached is a patch to add HtmlWindow and some of its friends, including
HtmlEasyPrinting. Also a sample.
I haven''t tried exposing the parsing and rendering API yet to allow
custom tags etc - I just wanted to get basic HTML and the 0.6.0
compatibility classes first. There may well be some quite easy classes left.
There''s one ugly kludge to get OnOpeningURL to compile -
2010 Nov 19
3
Sweave Dynamic Graph Question
i have a time Series of IBM closing px from 1/1/2000 to today
I want to graph the time serie by dividing the graph by year and month
all the monthly graphs with the same year will go to one page. so from
1/1/2000 to 11/19/2010. i will have
11 pages, and each page will have 12 graphs (jan to dec) except for 2010.
I am able to do it in R, but when i use sweave, I can only print the last
page.
2008 Jul 15
1
Supressing printing from a function: ecdf
Dear R Users,
I am trying to suppress the information printed by the ecdf function
during an assignment. Various alternatives have failed me so far:
> a=summary(ecdf(rnorm(100)))["1st Qu."]
Empirical CDF: 100 unique values with summary
> invisible(a=summary(ecdf(rnorm(100)))["1st Qu."])
Empirical CDF: 100 unique values with summary
> (function()
2015 Dec 15
2
Trouble supressing ASAN reported leaks
Hi,
I'm currently trying to find and fix memory leaks (compiling with
``-fsanitize=address``) in the KLEE tool [1] an having found some
leaks and I'm having trouble suppressing them.
I'm trying to suppress them using the
``-fsanitize-blacklist=blacklist.txt`` option as documented at
[2]. I'm using Clang 3.7 ( Arch Linux package 3.7.0-6).
The sort of reported leaks I see are
```