Hi,
Can anyone give me a pointer on howto make a package execute a function at
loading?
Following an older post (http://bit.ly/cS1Go4), I'd like to do something
along the lines of
.localstuff - new.env()
.localstuff$OftenUsedData - read.csv(...)
upon loading the package ...
Thanks, Joh
Hi,
I'm running into the error below when doing R CMD INSTALL
MyPackage.tar.gz. This didn't use to be this way and I am at a loss as to
where this might be coming from. Any pointers where to look?
Joh
** building package indices ...
Error in scan(file, what, nmax, sep, dec, quote, skip,
Duncan Murdoch wrote:
On 28/10/2010 7:54 AM, Johannes Graumann wrote:
Hi,
I'm running into the error below when doing R CMD INSTALL
MyPackage.tar.gz. This didn't use to be this way and I am at a loss as
to where this might be coming from. Any pointers where to look?
Joh
** building
Johannes Graumann wrote:
Hi,
I'm running into the error below when doing R CMD INSTALL
MyPackage.tar.gz. This didn't use to be this way and I am at a loss as to
where this might be coming from. Any pointers where to look?
Joh
** building package indices ...
Error in scan(file, what
Johannes Graumann wrote:
Johannes Graumann wrote:
Hi,
I'm running into the error below when doing R CMD INSTALL
MyPackage.tar.gz. This didn't use to be this way and I am at a loss as
to where this might be coming from. Any pointers where to look?
Joh
** building package indices
Hi,
Any ideas on how to efficiently convert
list(c(1,2,3),c(4,5,6))
to
data.frame(OriginalListIndex=c(1,1,1,2,2,2),Item=c(1,2,3,4,5,6))
Thanks for any hints,
Joh
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
(x = seq_along(mydata),
times = unlist(lapply(mydata, length))),
Item = unlist(mydata)
)
HTH,
Josh
On Mon, Jul 26, 2010 at 7:46 AM, Johannes Graumann
johannes_graum...@web.de wrote:
Hi,
Any ideas on how to efficiently convert
list(c(1,2,3),c(4,5,6
Hi,
Is there any way to get an expression into a data.frame, such that
grid.table from gridExtra will plot it evaluated in the table body? The
docu does it for the header, but is the body possible?
Thanks, Joh
__
R-help@r-project.org mailing list
- data.frame(alpha, beta)
grid.table(d, parse=T)
you'll need revision 258 of gridExtra for this to work (googlecode now,
r-forge in the following days, CRAN in the next stable version).
HTH,
baptiste
On Aug 4, 2010, at 9:56 AM, Johannes Graumann wrote:
Hi Baptiste,
This is, I fear a bit
Hi,
can someone point me at material to understand how in
http://upload.wikimedia.org/wikipedia/commons/8/89/Boxplot_vs_PDF.png the
fivenum-corresponding percentages might be calculated?
Thanks, Joh
__
R-help@r-project.org mailing list
On Saturday 14 August 2010 23:08:31 Peter Dalgaard wrote:
Johannes Graumann wrote:
Hi,
can someone point me at material to understand how in
http://upload.wikimedia.org/wikipedia/commons/8/89/Boxplot_vs_PDF.png the
fivenum-corresponding percentages might be calculated?
Looks like
.
baptiste
On 6 August 2010 17:11, Johannes Graumann johannes_graum...@web.de wrote:
I updated the package from r-forge, but despite the fact that
grid.table does not complain about the parse option if given, your
example below is not being printed as a parsed expression.
How can I check
Hi,
Why is the following retuning a nodset of length 0:
library(XML)
test - xmlTreeParse(
http://www.unimod.org/xml/unimod_tables.xml,useInternalNodes=TRUE)
getNodeSet(test,//modifications_row)
Thanks for any hint.
Joh
__
R-help@r-project.org
()
So
getNodeSet(test, //x:modifications_row, x)
gives you probably what you want.
D.
On 8/30/10 8:02 AM, Johannes Graumann wrote:
library(XML)
test - xmlTreeParse(
http://www.unimod.org/xml/unimod_tables.xml,useInternalNodes=TRUE)
getNodeSet(test,//modifications_row
Sorry about that - got dropped from my attempts yesterday (see the first
example below, that has the useInternalNodes=TRUE) ...
Thanks again, Joh
Duncan Temple Lang wrote:
Johannes Graumann wrote:
Thanks!
but:
library(XML)
xmlDoc - xmlTreeParse(http://www.unimod.org/xml
Hi,
I fail to find choose.dir() in my current R install (see below)? Didn't
that exist at some point? How to achieve file.choose() equivalent
functionality for directories?
Thanks for any hints, Joh
sessionInfo()
R version 2.11.1 (2010-05-31)
x86_64-pc-linux-gnu
locale:
[1]
OK. Just checked and choose.file/choose.dir exists in the windows
version - apparently not in the linux one ... does anybody have a nice
platform-agnostic solution for this?
Thanks, Joh
Johannes Graumann wrote:
Hi,
I fail to find choose.dir() in my current R install (see below)? Didn't
Hi,
I'm turning my wheels on this and keep coming around to the same wrong
solution - please have a look and give a hand ...
The premise is: a DF like so
loremIpsum - Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Quisque leo ipsum, ultricies scelerisque volutpat non, volutpat et
Stupid Joh wants to give you a big hug! Thanks! Why rank works but order
not, I have still to figure out, though ...
Joh
On Monday 04 October 2010 17:30:32 peter dalgaard wrote:
On Oct 4, 2010, at 16:57 , Johannes Graumann wrote:
Hi,
I'm turning my wheels on this and keep coming around
Rene wrote:
Dear all,
I am stuck at applying loop function for creating separated plots.
I have coding like below:
dataset.table -
table(data.frame(var1=c(1,2,3,1,2,3,1),colour=c(a,b,c,c,a,b,b)
))
kk = function(f)
{
ls=as.character(f)
Hi,
How can I make the result of the following lines TRUE?
install.packages(XML)
library(XML)
supportsExpat()
[1] FALSE
I'm on linux, looked into the actual package, but don't seem to be able to
wrap my head around how to compile this in ...
Any pointers are welcome,
Thanks Joh
the expat libraries, etc.
HTH,
D.
Johannes Graumann wrote:
Hi,
How can I make the result of the following lines TRUE?
install.packages(XML)
library(XML)
supportsExpat()
[1] FALSE
I'm on linux, looked into the actual package, but don't seem to be able
to wrap my head
24 October 2009 23:31:46 Duncan Temple Lang wrote:
Johannes Graumann wrote:
Hi,
I had heard that Expat is was faster. Your mail actually made me go check
google for some comparisons and that does not seem the case ... do you
have any insight into this?
A couple of points..
i
On Sunday 25 October 2009 00:38:54 you wrote:
xmlEventParse() is intended for handling files that we don't want to keep
in memory. The branches parameter does make it easier to deal with
sub-trees as the document is being parsed. And within these branches one
can use XPath.
Very
Dear all,
Is there an efficient way to get this list
testList - list(c(1),c(2,3,4),c(5,6),c(7),c(8),c(9,10,11,12),c(13))
from this vector
testVector - c(12,32,NA,NA,56,NA,78,65,87,NA,NA,NA,90)
?
Basically the vector should be grouped, such that non-NA and all following
NAs end up in one
`
[1] 1
$`2`
[1] 2 3 4
$`3`
[1] 5 6
$`4`
[1] 7
$`5`
[1] 8
$`6`
[1] 9 10 11 12
$`7`
[1] 13
On Wed, Oct 28, 2009 at 7:57 AM, Johannes Graumann
johannes_graum...@web.de wrote:
Dear all,
Is there an efficient way to get this list
testList - list(c(1),c(2,3,4),c(5,6),c
Hi,
Is there any way of doing 'grep' ore something like it on the content of a
text file and extract the byte positioning of the match in the file? I'm
facing the need to access rather largish (600MB) XML files and would like
to be able to index them ...
Thanks for any help or flogging,
Joh
the character
offset: if you want to match in a MBCS and have byte offsets you will
need to work a bit harder if useBytes=TRUE is not sufficient for you.
On Wed, 28 Oct 2009, Johannes Graumann wrote:
Hi,
Is there any way of doing 'grep' ore something like it on the content of
a text file
On Monday 02 November 2009 13:41:45 Prof Brian Ripley wrote:
On Mon, 2 Nov 2009, Johannes Graumann wrote:
Hmmm ... that should do it, thanks. But how would one use this on a file
without reading it into memory completely?
?file, ?readLines, ?readBin
will tell you about connections
Hi,
I'm dealing which huge files I would like to index. On a linux system grep
-buo PATTERN FILENAME hands me the byte offsets for PATTERN very
quickly and I am looking to emulate that speed and ease with native R tools
- for portability and elegance. gregexpr should be able to do that but I
Hi,
Is there any R-generic, OS-agnostic way to figure out what end-of-line
character is being used in a file to be processed by readLines?
Thanks, Joh
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
Markus Mehrwald wrote:
Hi all,
I am completely new to R and my knowledge of statistics is quite small
so I hope you can help my.
I have three dimensional point data which represents (and this is what I
do not know for sure) a normal distribution. Now I want to test if this
is true or not
How about
plot(sigma, delta1, ylim=range(-0.5, 2), xlab='sigma', ylab='delta', pch=22,
type='o')
points(sigma, delta2, col='red', axes=FALSE, type='o')
legend(topleft,c(Delta1,Delta2),fill=TRUE,col=c(black,red))
Send runnable example next time.
HTH, Joh
gcheer3 wrote:
TO be specific, here
'. Also, it will be nice if there is a square symbol
next to delta1 and a circle symbol next to delta 2, since sometimes I have
to print the graph in a white and black paper. Thanks for any suggestions.
Sorry for not asking question clearly.
Johannes Graumann-2 wrote:
How about
plot(sigma
myVector - c(seq(10),23,35)
length(myVector)
myVector[length(myVector)]
it's unclear to me which of the two you want ...
HTH, Joh
yonosoyelmejor wrote:
Hello, i would like to ask you another question. Is exist anymethod to
vectors that tells me the last element?That is to say,I have a
Hi,
Why is the result of below apply call rotated with respect to the input
and how to remedy this?
Thanks, Joh
.ZScore - function(input){
#cat(input,\n)
z - (input - mean(input))/sd(input)
return(z)
}
apply(data.frame(x1=c(1,2,3,4,5),x2=c(2,3,4,5,6),x3=c(3,4,5,6,7)),1,.ZScore)
David Winsemius wrote:
On May 27, 2010, at 7:24 AM, Johannes Graumann wrote:
Hi,
Why is the result of below apply call rotated with respect to the
input
and how to remedy this?
Because the processing you requested is with respect to rows and the
construction of matrices
Hi,
I have zlib compressed strings (example is attached) and would like to
decompress them using memDecompress ...
I try this:
connection - file(compressed.txt,r)
compressed - readLines(connection)
memDecompress(as.raw(compressed),type=g)
Error in memDecompress(as.raw(compressed), type = g)
was stripped, such files are 8-bit and yours is ASCII.
Try
x - 'Johannes Graumann'
xx - charToRaw(x)
xxx - memCompress(xx, g)
rawToChar(xxx)
[1] x\x9c\xf3\xca\xcfH\xcc\xcbK-Vp/J,\xcd\0052\001:\n\006\x90
to see what a real gzipped string looks like.
and would like to decompress them using
Hello,
Has anybody solved this?
Thanks, Joh
__
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-guide.html
and provide commented, minimal, self-contained,
Hello,
When drawing barcharts, I find it not helpful if ylim[1] != 0 - bars for a
quantity of 0, that do not show a length of 0 are quite non-intuitive.
I have tried to study
library(lattice)
panel.barchart
but am unable to figure out where ylim is taken care of and how one
David Winsemius wrote:
On Feb 14, 2010, at 10:33 AM, Johannes Graumann wrote:
Hello,
When drawing barcharts, I find it not helpful if ylim[1] != 0 -
bars for a
quantity of 0, that do not show a length of 0 are quite non-intuitive.
I have tried to study
library(lattice
Deepayan Sarkar wrote:
On Sun, Feb 14, 2010 at 7:33 AM, Johannes Graumann
johannes_graum...@web.de wrote:
Hello,
When drawing barcharts, I find it not helpful if ylim[1] != 0 - bars
for a quantity of 0, that do not show a length of 0 are quite
non-intuitive.
I have tried to study
Rolf Turner wrote:
On 15/02/2010, at 9:40 AM, Johannes Graumann wrote
SNIP
(In response to some advice from David Winsemius):
I am quite certain that this is the most elaborately worded version of
RTFM I have ever come across.
I nominate this as a fortune. (Despite Prof
Johannes Graumann wrote:
Has anybody solved this?
For the benefit of others: after studying
?panel.bwplot
I have to admit that
bwplot(..., varwidth = TRUE)
solves the issue. It's just not documented at
?bwplot
Cheers, Joh
Hi,
When using the Packages -- Install packages from local zip files menu
item in the windows-gui:
1) is that supposed to automatically pull in dependencies (in that case I
have to fix something in my package).
2) If that's not the default: is there a way to make it so?
Thanks, Joh
Hi,
I read in some tabular data using this:
read.table(file, quote = \, header = TRUE, sep = \t,
stringsAsFactors = FALSE, comment.char = )
One slight problem I have now is that some columns in the data set contain
either or +, which means FALSE or TRUE respectively. The command
, TRUE)
y
[1] FALSE FALSE TRUE FALSE TRUE
Or define a custom class with an as() method and use that in colClasses.
On Tue, Apr 15, 2008 at 5:10 AM, Johannes Graumann
[EMAIL PROTECTED] wrote:
Hi,
I read in some tabular data using this:
read.table(file, quote = \, header = TRUE, sep = \t
Hi,
Can anyone give me a hint on what's wrong if R CMD check PACKAGE gives
me this error:
Rd files with unknown encoding:
FILENAME.Rd
I have checked that file over and over and can't find any weired characters
or some such.
How can I fix this?
Thanks for your time, Joh
Prof Brian Ripley wrote:
One thing I should add for the archives -- R 2.7.0 and later have
oNew function showNonASCII() in package tools to aid detection
of non-ASCII characters in .R and .Rd files.
Is there any chance of having the output of this show up in the test log
when
Hi,
I have a list of vectors and am trying to coerce them into something that
vioplot will take as groups of data to be plotted independently. Can
someone nudge me into the right direction?
Thanks, Joh
__
R-help@r-project.org mailing list
Johannes Graumann wrote:
Hi,
I have a list of vectors and am trying to coerce them into something that
vioplot will take as groups of data to be plotted independently. Can
someone nudge me into the right direction?
Thanks, Joh
__
R-help@r
a solution if we do not understand the problem
to be solved. Sample data would be helpful along with an
understanding of what you would expect for output.
On Wed, Apr 23, 2008 at 10:11 AM, Johannes Graumann
[EMAIL PROTECTED] wrote:
Johannes Graumann wrote:
Hi,
I have a list of vectors
Off-list it was pointed out to me that the trivial solution to this would
look like this:
myfunction2 - function(x, ...){
mylist - list(x, ...)
# plenty of lapply stuff
do.call(vioplot,mylist)
}
Thanks for everybodies patience,
Joh
Johannes Graumann wrote:
posted mailed
Thanks
not
# vioplot expects names as a plain vector, not in the
# form names=c(One,Two,Three) ...
names - c(One,Two,Three)
do.call(vioplot,c(mylist,col=white,names))
Any help on how to do this?
Thanks, Joh
Johannes Graumann wrote:
Off-list it was pointed out to me that the trivial solution to this would
Dirty solution: switched off x-axis plotting via 'par' and added it the
personalized way with 'axis'.
Joh
Johannes Graumann wrote:
Hm, now I have trouble using additional vioplot parameters.
mu-2
si-0.6
bimodal-c(rnorm(1000,-mu,si),rnorm(1000,mu,si))
uniform-runif(2000,-4,4)
normal
posted mailed
Johannes Graumann wrote:
Vioplots have great appeal to me, as they manage to squeeze so much
information into so little space ...
Now some evaluation has made me suspicious about the implementation in the
package vioplot and I would like to hear what you say about the appended
Hi,
Can someone please guide me towards how to produce heatmap output from the
output of hclust run prior to the actual heatmap call? I have some
rather lengthy clustering going on and tweeking the visual output
with heatmap recalculating the clustering every time is not feasible.
Thanks, Joh
Hello,
With the help of seek I can start readBin from any byte offset within my
file that I deem appropriate.
What I would like to do is to be able to define the endpoint of that read as
well. Is there any solution to that already out there?
Thanks for any hints, Joh
passing would
be possible, since there's no way the thing will fit into memory).
Thanks again, Joh
Johannes Graumann wrote:
Hello,
With the help of seek I can start readBin from any byte offset within
my file that I deem appropriate.
What I would like to do is to be able to define
Hello,
I'm trying to document this little package I'm working on and have the
following issue:
one of the man files (*.Rd) contains this bit
\value{
Returns a \code{\link[base]{data.frame}} representing the tabular data.
}
The resulting link is broken on my debian system. It points
to
Prof Brian Ripley wrote:
So you are talking about the HTML conversion of your help (.Rd) file?
(Links appear in other versions too.)
The HTML links are intended to be used via help.start(), not directly, and
I think you find it actually points to ../../base/html/data.frame.html,
which is
posted mailed
Prof Brian Ripley wrote:
Using non-linked HTML file: style sheet and hyperlinks may be incorrect
- which is what happens ... how to switch to linked HTML file?
It all works via help.start() (as I did say), at least in a reliable R
front end. Running help.start() is how you
December 2007 14:08:47 Prof Brian Ripley wrote:
On Mon, 3 Dec 2007, Johannes Graumann wrote:
posted mailed
Prof Brian Ripley wrote:
Using non-linked HTML file: style sheet and hyperlinks may be incorrect
- which is what happens ... how to switch to linked HTML file?
It all works via
Hello,
I'm missing two features in R CMD build:
1) Easy building of Windows/zip packaged package version alongside the
*nix-style *.tar.gz.
Right now I'm doing a scripted version of
R CMD build PACKAGE
R CMD INSTALL PACKAGE
mkdir tmp
cp -r
Hello,
I'm trying to integrate example data in the shape of a tab delimited ASCII
file into my package and therefore dropped it into the data subdirectory.
The build works out just fine, but when I attempt to install I get:
** building package indices ...
Error in scan(file, what, nmax, sep,
Johannes Graumann wrote:
On Thursday 06 December 2007 11:52:46 Peter Dalgaard wrote:
Johannes Graumann wrote:
Hello,
I'm trying to integrate example data in the shape of a tab delimited
ASCII file into my package and therefore dropped it into the data
subdirectory. The build works out
Peter Dalgaard wrote:
Answering to myself and staying with the same example:
system.file(data/stroke.csv,package=ISwR)
allows direct access to the example file (name).
Yes, but...
This works right until you turn on LazyData for your package, then you
end up with only
Gustaf Rydevik wrote:
On Dec 10, 2007 2:28 PM, Johannes Graumann [EMAIL PROTECTED]
wrote:
Hello,
I have a large data frame (1006222 rows), which I subject to a crude
clustering attempt that results in a vector stating whether the datapoint
represented by a row belongs to a cluster
Hi all,
What may be a smart, efficient way to get the following result:
myvector - c(A,B,C,D,E)
myseries - miracle(myvector)
myseries
[1]
[[1]] A
[2]
[[1]] A B
[3]
[[1]] A B
[4]
[[1]] A B C
[5]
[[1]] A B C D
[6]
[[1]] A B C D E
Thanks for any hints,
Joh
Debugged version:
lapply(1:length(myvector), function(.length) {
myvector[1:.length]
})
Thanks for showing the direction!
Joh
[EMAIL PROTECTED] wrote:
From: Johannes Graumann [EMAIL PROTECTED]
Date: 2007/12/18 Tue PM 04:40:37 CST
To: [EMAIL PROTECTED]
Subject: [R] All anchored series from
Nothing to be sorry about. You suggested a viable solution untested ... my
job to figure it out ;0)
Joh
[EMAIL PROTECTED] wrote:
From: [EMAIL PROTECTED]
Date: 2007/12/18 Tue PM 02:50:52 CST
To: Johannes Graumann [EMAIL PROTECTED]
Cc: r-help@r-project.org
Subject: Re: [R] All anchored series
). This means that it will split matrix columns in
data frame arguments, and convert character columns to factors unless
stringsAsFactors = TRUE is passed.
(I'm guessing 'spectrum' is a data.frame before the code fragment you've
shown)
hope this helps,
Tony Plate
Johannes Graumann wrote:
Why
posted mailed
Dear all,
I'm trying to solve the problem, of how to find clusters of values in a
vector that are closer than a given value. Illustrated this might look as
follows:
vector - c(0,0.45,1,2,3,3.25,3.33,3.75,4.1,5,6,6.45,7,7.1,8)
When using '0.5' as the proximity requirement, the
6.45 7.00 7.10 8.00
On Dec 21, 2007 4:56 AM, Johannes Graumann [EMAIL PROTECTED]
wrote:
posted mailed
Dear all,
I'm trying to solve the problem, of how to find clusters of values in a
vector that are closer than a given value. Illustrated this might look as
follows:
vector - c
with more than 2
x.subsets - x.groups[sapply(x.groups, length) = 3]
# print out the subsets
invisible(lapply(x.subsets, function(a) print(vector[unique(a)])))
[1] 0.00 0.45
[1] 3.00 3.25 3.33 3.75 4.10
[1] 6.00 6.45
[1] 7.0 7.1
On Dec 21, 2007 4:56 AM, Johannes Graumann [EMAIL PROTECTED]
wrote
. Split the output of cutree, instead. Continuing from the
prior code:
for(el in split(unname(vv), names(vv))) print(el)
[1] 0.00 0.45
[1] 1
[1] 2
[1] 3.00 3.25 3.33 3.75 4.10
[1] 5
[1] 6.00 6.45
[1] 7.0 7.1
[1] 8
On Dec 21, 2007 3:24 PM, Johannes Graumann [EMAIL PROTECTED]
wrote:
Hm
of cutree, instead. Continuing from the
prior code:
for(el in split(unname(vv), names(vv))) print(el)
[1] 0.00 0.45
[1] 1
[1] 2
[1] 3.00 3.25 3.33 3.75 4.10
[1] 5
[1] 6.00 6.45
[1] 7.0 7.1
[1] 8
On Dec 21, 2007 3:24 PM, Johannes Graumann [EMAIL PROTECTED]
wrote:
Hm, hm, rect.hclust
want to retain groups with 2+ elements then
you can just Filter then out:
twoplus - function(x) length(x) = 2
Filter(twoplus, split(seq_along(v), ct))
On Dec 22, 2007 5:12 AM, Johannes Graumann [EMAIL PROTECTED]
wrote:
But cutree does away with the indexes from the original input, which
Dear all,
As you can see from the attachment I'm using R to automatically annotate
peptide fragmentation mass spectra, which are represented by impulse plots.
I'd like to poll you on approaches of how to deal as generally as possible
with the two biggest annotation issues I run into:
1) very
Hi all,
I'm to inexperienced to come up with the matrix solution elusively appearing
on the horizon for the following problem and would appreciate if you could
give me a nudge ...
I have two vectors a, and b and need to find the closest match for each
value of a in b.
How to do that efficiently?
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Johannes Graumann
Sent: Monday, January 07, 2008 11:19 AM
To: [EMAIL PROTECTED]
Subject: [R] Efficient way to substract all entries in two vectors from
eachother
Hi all,
I'm to inexperienced to come up with the matrix solution
Ido M. Tamir wrote:
matchpt
Thanks for this hint. It is exactly what I'm looking for.
Cheers, Joh
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
Jim,
I finally got back to this implementation of mine and dude, this function is
amazing! Thank you so much!
Joh
On Saturday 05 January 2008 11:42:30 Jim Lemon wrote:
Johannes Graumann wrote:
Dear all,
As you can see from the attachment I'm using R to automatically annotate
peptide
Hi all,
I'm trying to use an iteration that appends something to vector 'peaklabels'
like so:
peaklabelNames - append(
peaklabelNames,
substitute(i^{z+phantom()}* (*a*AMU),list(i=y2,z=2,a=0))
)
The vector is supposed to be used with 'text' to put labels on signals in an
impulse
Uwe Ligges wrote:
Johannes Graumann wrote:
Hi all,
I'm trying to use an iteration that appends something to vector
'peaklabels' like so:
peaklabelNames - append(
peaklabelNames,
substitute(i^{z+phantom()}* (*a*AMU),list(i=y2,z=2,a=0))
)
The vector is supposed
Hi all,
I asked something like this earlier but decided that a proper minimal
example might be helpfull ;0)
Why does this work with regards to the expression (substitution):
require(stats)
plot(cars)
text(5,120,labels=substitute(i^{z+phantom()}*(*a*
AMU),list(i=yx,z=2,a=0)))
Thanks for your help! Works like a charm now - I can even append to an
expression abject as if it was plain 'c()' ...
Joh
Prof Brian Ripley wrote:
On Thu, 17 Jan 2008, Johannes Graumann wrote:
Hi all,
I asked something like this earlier but decided that a proper minimal
example might
I really do not know ho to else title this ... I want to draw something like
the attached png with R and would like to poll you on how to start ... make
an empty plot first and then start positioning the characterstring
by 'text' and then drawing the lines ...
Joh
attachment:
Marc, you are kind of crazy ... I asked for a discussion of the path to take
to get there, not to have it done ... but hey, what am I complaining
about? ;0)
Thank you very much!
Joh
Marc Schwartz wrote:
Johannes Graumann wrote:
I really do not know ho to else title this ... I want to draw
Hi again,
how to elegantly split
s - ABCDEFGT(P)HIJK
into
A B C D E F G T(P) H I J K
(independently of which letters 'T' or 'P' actually represent ...).
Please jumstart my regexing,
Joh
__
R-help@r-project.org mailing list
at:
http://gsubfn.googlecode.com
and vignette:
library(gsubfn); vignette(gsubfn)
On Jan 18, 2008 9:09 AM, Johannes Graumann [EMAIL PROTECTED] wrote:
Hi again,
how to elegantly split
s - ABCDEFGT(P)HIJK
into
A B C D E F G T(P) H I J K
(independently of which letters 'T
Hello,
I just don't get this and would appreciate if someone could write a line or
two: I'm trying to build this package and it stops installing after I add
the following to the NAMESPACES file:
importFrom(gsubfn,strapply)
The error during the package test is:
Error in MyPackage::MyFunction :
need to rely on the old mechanism using require(). Apart
from that, it also seems that 'strapply' package is not even in the R
search path. Do you see it in the listing created by a call to library()?
HTH,
Michal
Johannes Graumann-2 wrote:
Hello,
I just don't get this and would
How can I test whether a plot I'm about to call will be within a layout or
not? I need to fix some par options based on that ...
Thanks, Joh
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting
Hello,
I wrote the function below and have the problem, that the text bit returns
only a trimmed version (686 chars as far as I can see) of the content under
the fetchPeaks condition.
Any hunches why that might be?
Thanks for pointer, Joh
xmlEventParse(fileName,
list(
= FALSE in the call to xmlEventParse().
If you specify this, you might well get the results you expect.
If not, can you post the actual file you are reading so we can
reproduce your results.
D.
Johannes Graumann wrote:
Hello,
I wrote the function below and have the problem
Hi all,
I swear this used to work:
library(gsubfn)
strapply(S(AC,P)TVDK(8)EELVQK(8), .[(].{1,2}[)]|.)[[1]]
But somewhere along the update path it stopped ... now giving me this
Error in base::gsub(pattern, rs, x, ...) :
invalid backreference 2 in regular expression
Can't figure it out.
in no error message.
On Tue, Oct 28, 2008 at 7:39 AM, Johannes Graumann
[EMAIL PROTECTED] wrote:
Hi all,
I swear this used to work:
library(gsubfn)
strapply(S(AC,P)TVDK(8)EELVQK(8), .[(].{1,2}[)]|.)[[1]]
But somewhere along the update path it stopped ... now giving me this
Error in base
.
The NEWS file in the gsubfn distribution does mention
the change.
On Tue, Oct 28, 2008 at 8:32 AM, Johannes Graumann
[EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Thanks for looking at this. The \ was an oversight for the example,
but the backref bit solves my
1 - 100 of 150 matches
Mail list logo