Does anyone have a PERL client example that sends a command to a running
RServ instance and displays the output on the client side?
Regards
Lokesh
--
View this message in context:
http://r.789695.n4.nabble.com/PERL-client-example-for-RServ-tp3823032p3823032.html
Sent from the R help mailing
Greetings!
I am using the R library RQDA to assign certain codes to paragraphs of
documents in a collection. Several paragraphs are assigned more than
1 code. E.g. often the codes poverty and education will be
assigned to the same paragraph. Often also math and career will
be given to the
On 09/17/2011 08:37 PM, nclfinance wrote:
Dear R users,
Just to clarify. I am not offering to pay someone to do my Dissertation.
These 4-5 commands on Kalman Filter would be only a tiny part of my 10,000
words dissertation. A part that even after trying for a few days, I am still
stuck on.
What do you want with the row names? The help file for ?write.table
lists a row.names argument which can be set to FALSE.
regards,
Paul
On 09/06/2011 02:58 PM, Mark Ebbert wrote:
Thank you for your help.
The data is meant to be processed by a separate program that expects a simple
matrix
Hi everyone!
Sorry for posting late but my problem is solved! I found a way to do what I
had to do ^^
But if you want to know what exactly it was I can update some of my code and
data... just let me know!
Thanks again for your replies!
Thomas
--
View this message in context:
Thanks a lot! Works fine!
--
View this message in context:
http://r.789695.n4.nabble.com/How-to-save-row-values-from-a-matrix-into-one-vector-tp3818415p3823320.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org
Dear expeRts,
I it possible to have serif labels in the following plot?
x - 1:10
y - x
plot(x, y, type=b, xlab=expression(x[1]), ylab=expression(x[2]))
I know that one can use pdf(, family=serif), but then also the axis tick
marks
are printed in serif font. Apart from the fact that it may not
Dear All,
Has R got a function to perform a sign test? I have done some
searching but with no luck.
Thanks in advance,
Paul
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
Hi
Works for me, how did you tested it?
v - sample(letters[1:10], 17, replace=T)
d-data.frame(letters[1:10], 1:10)
d[match(v,d[,1]),2]
[1] 8 2 6 1 7 10 4 10 10 9 10 8 1 8 6 7 8
Regards
Petr
Předmět
Re: [R] Replacing matching values by related values
Thanks Michael.
I
Your search skills need some work: going to rseek.org and searching
for sign test turned up several functions. Without more information on
your problem, I have no idea which is better for you, or if they're all
good.
Although googling for R sign test returned both several functions and
a website
Hi All,
I have a character vector by name tickers
head(tickers,10)
V1
1 ADARSHPL.BO
2AGR.V
3 AGU
4 AGU.TO
5 AIMCO.BO
6 ALUFLUOR.BO
7AMZ.V
8 AVD
9 ANILPROD.BO
10ARIES.BO
I would like to extract all elements that has .BO in it. I
hi jim,
with the function get I could solve the problem using the following
commands:
q1 - kinderrechte[,q0]
l1 - get(paste(q0, _l, sep = ))
in this way i am getting the content of the object instead of the name of
the object.
thank you very much for your help!
marion
2011/9/16 jim holtman
Thanks, Sarah. I am simply astonished at your brilliance. Please,
search RSeek and check whether you can find a function to perform an
one-sample median test via a sign test; I could not, but I am not a
genius as you are.
Paul
On Mon, Sep 19, 2011 at 11:20 AM, Sarah Goslee
Hi,
On Mon, Sep 19, 2011 at 6:15 AM, SNV Krishna kris...@primps.com.sg wrote:
Hi All,
I have a character vector by name tickers
head(tickers,10)
V1
1 ADARSHPL.BO
2 AGR.V
3 AGU
4 AGU.TO
5 AIMCO.BO
6 ALUFLUOR.BO
7 AMZ.V
8 AVD
9
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi
I want to use R on a cluster, and up to updates, it was working fine.
Now it works on most nodes, but on several nodes I have a problem,
that R as well as Rscript just hangs - no error message. So the
following commands result in a hung R session,
Dear Paul,
On Mon, Sep 19, 2011 at 6:55 AM, Paul Smith phh...@gmail.com wrote:
Thanks, Sarah. I am simply astonished at your brilliance. Please,
search RSeek and check whether you can find a function to perform an
one-sample median test via a sign test; I could not, but I am not a
genius as
You did not search hard enough.
RSiteSearch(sign test)
or
library(sos)
findFn(sign test)
Both gives you plenty of possible functions.
-Oorspronkelijk bericht-
Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
Namens Paul Smith
Verzonden: maandag 19 september
Hello,
could someone help me with this problem?:
I would like to create a latex-script inside of a character vector in order
to being able to compilate it within latex in the end.
if i try the following commands:
l1 - Hello world
latexscript - paste(\c,l1,\c)
... I get an error message. I
On 11-09-19 7:30 AM, Marion Wenty wrote:
Hello,
could someone help me with this problem?:
I would like to create a latex-script inside of a character vector in order
to being able to compilate it within latex in the end.
if i try the following commands:
l1- Hello world
latexscript-
thank you for the adresses, i will have a look at the web-pages.
marion
2011/9/15 Mark Sharp msh...@txbiomed.org
Statistics.com has several.
Mark
On 9/15/11 3:46 AM, Marion Wenty marion.we...@gmail.com wrote:
Hello,
I have a question concerning courses in R in *Vienna, Austria*.
Hi Jan Marius,
using the tikzDevice-package, nearly everything is possible (at least,
all what can be done in LaTeX).
cheers
Am 19.09.2011 11:58, schrieb Hofert Jan Marius:
Dear expeRts,
I it possible to have serif labels in the following plot?
x - 1:10
y - x
plot(x, y, type=b,
What exactly are you looking to do? If it's just to get the name, drop the
get() call and just put:
q1 - kinderrechte[,q0]
l1 - paste(q0,_l,sep=)
Michael Weylandt
On Mon, Sep 19, 2011 at 6:55 AM, Marion Wenty marion.we...@gmail.comwrote:
hi jim,
with the function get I could solve the
Alas, speaking before I check the optional argumentsc'est la vie.
MW
On Sun, Sep 18, 2011 at 3:00 PM, Jorge I Velez jorgeivanve...@gmail.comwrote:
Why wouldn't? It does for me ;-)
curve(sin(x), 0, 10, col = 4, lwd = 2, las = 1)
curve(cos(x), 0, 10, add = TRUE)
Best,
Jorge
On Sun,
--- begin included message --
If my survival data includes more than two outcomes, for example death,
disability and censored. Does R have corresponding packages or programs
to run Cox proportional hazard model with multiple failure time data.
--- end inclusion --
The survival package (R and
This is to announce that we plan to release R version 2.14.0 on Monday,
October 31, 2011.
As a new feature, we will precede the run-in sequence for 2.14.0 with a final
release of the 2.13 series, 2.13.2. No further patching of this series is
intended.
Those directly involved should review
Dear Eik,
although possible in this case, tikzDevice is certainly not a general solution
to all kinds of problems :-) I used it for quite some time before I gave up: I
had a simple bar plot, the bars being black. This already caused errors like
TeX capacity exceeded ... and I obtained these a
Andrey A avakoa at gmail.com writes:
Hello I performed a linear regression, my equation is Y = âo+ â1A + â2B +
â3AB.
Is there a way to separate interaction terms, say â3AB and plot it against a
certain variable?
Thanks, Andrew
Not quite sure what you mean here. Possibly something like
Hi Jan Marius,
I had a lot of positive experience with tkiz, but yes, handling large
datasets can push it to the limits.
Anyway, in your case, isn't it as simple as
plot(x, y, type=b,xlab=,ylab=)
title(xlab=expression(x[1]), ylab=expression(x[2]),family=serif)
cheers
Am 19.09.2011 14:51,
hello,
i am familiar with the paste command with which i can paste for exaple:
object - Hello
paste(object,World)
now i would like to be able to paste all the elements of the same vector
together e.g:
object - c(Hello,World)
getting as a result also:
Hello World.
Does anyone know the
paste(...,collapse= )
Michael Weylandt
On Mon, Sep 19, 2011 at 9:58 AM, Marion Wenty marion.we...@gmail.comwrote:
hello,
i am familiar with the paste command with which i can paste for exaple:
object - Hello
paste(object,World)
now i would like to be able to paste all the elements of
Try this:
object - c(Hello, World)
paste(object, collapse = )
I hope it helps.
Best,
Dimitris
On 9/19/2011 3:58 PM, Marion Wenty wrote:
hello,
i am familiar with the paste command with which i can paste for exaple:
object- Hello
paste(object,World)
now i would like to be able to paste
Hi
I have a variable str = X, Y and values (0,12)
i want to set value for X =0 and Y =12 and use inside the program.
how to do this
Please anybody help me.
--
View this message in context:
http://r.789695.n4.nabble.com/Setting-the-Values-tp3823388p3823388.html
Sent from the R help mailing
Dear all,
I need to compute a joint histogram to compare 2 images (with image()
function). I wonder if there is any function available in R to do this
properly?
Thanks for your help,
Aurrélien
--
View this message in context:
On Sep 19, 2011, at 7:05 AM, Sarah Goslee wrote:
Hi,
On Mon, Sep 19, 2011 at 6:15 AM, SNV Krishna kris...@primps.com.sg
wrote:
Hi All,
I have a character vector by name tickers
head(tickers,10)
V1
1 ADARSHPL.BO
2AGR.V
3 AGU
4 AGU.TO
5 AIMCO.BO
6
Take a look at assign(), but you may want to add some code to make sure
variables with those names don't already exist.
Something like:
str = c(X,Y)
val = c(0,12)
mapply(function(name,value){assign(name,as.double(value),envir=.GlobalEnv)},
str,val)
Hope this helps,
Michael Weylandt
On Mon,
Hi,
X = 0
Y =12
works for me.
If you judge my answer as too vague, please reread your original post
and kindly post the code you used to define the objects you are
mentioning.
Thanks,
JC
2011/9/19 arunkumar akpbond...@gmail.com:
Hi
I have a variable str = X, Y and values (0,12)
i want
hello michael and dimitris,
yes, this was it!
now i understand this collapse-argument.
thank you very much.
marion
2011/9/19 Dimitris Rizopoulos d.rizopou...@erasmusmc.nl
Try this:
object - c(Hello, World)
paste(object, collapse = )
I hope it helps.
Best,
Dimitris
On 9/19/2011
Hello dear R help members,
I am playing with the hwriter http://www.ebi.ac.uk/~gpau/hwriter/ package
in the purpose of creating HTML output in the Hebrew language.
I ran into a basic problem:
When I use the openPage command (from the {hwriter} package) the Hebrew text
I try to add to the HTML
Sorry, misread :). Consider my remark as retracted...however
It looks like it would be relatively simple to rewrite write.matrix a
little bit to include rownames...the cat statement in the while loop of
write.matrix could be changed to include a row name. To get he source
code of
Greetings R users, maybe there is someone who can help me with this problem:
I'm trying to fit this discontinous model :
GE-data.frame( Ci-c(81,87,91,111,159,173,295,453,629,984),
A-c(-0.9,1.2,3.5,8.3,13.1,14.4,22.9,27.3,29.6,32.6) )
rhs - function(Ci, Vcmax, J, Rd) {
R -0.008314472
Tleaf
I'm afraid I don't understand your response. As I mentioned in the original
question, write.table is way too slow and I need the row names in the file, so
setting row.names to FALSE wouldn't accomplish my goal, anyway. And
write.matrix doesn't have *any* options to include row names, which
Hi all,
I would like to replace the for loop in the code below with a function
to improve the speed and to make the script more efficient.
The loop creates a vector of integers (x) with the probability of f for
each integer.
The length of f is variable, but sums to 1.
I tried to use a function
Thank you, that's a good idea. I should have looked into that!
On Sep 19, 2011, at 8:42 AM, Paul Hiemstra wrote:
Sorry, misread :). Consider my remark as retracted...however
It looks like it would be relatively simple to rewrite write.matrix a
little bit to include rownames...the cat
Here is one example of doing it, first create a matrix with all your contrasts
(I added some to make it full), then invert it to get the dummy variable
encodings, use the 'contrast' function (or 'C') to set the contrasts, then use
'aov' or 'lm' and those contrasts will be used:
my.contrasts -
I read in ?na.omit that it returns the object with incomplete cases
removed. I interpret this to mean that any zoo object row where any column
shows 'NA' will be removed from the data set.
That's not what I need, since the 'NA' represents information in my
context. However, what I would like
On Mon, 19 Sep 2011, Rich Shepard wrote:
When I aggregate two factors by date in the zoo object, the rows being ...
^
That should be 'begin'.
Mea culpa!
Rich
__
On Sep 19, 2011, at 11:48 AM, Rich Shepard wrote:
I read in ?na.omit that it returns the object with incomplete cases
removed. I interpret this to mean that any zoo object row where any column
shows 'NA' will be removed from the data set.
That's not what I need, since the 'NA' represents
On Mon, 19 Sep 2011, Marc Schwartz wrote:
You can look at ?complete.cases for one approach, presuming that it will
work on zoo objects.
Marc,
I'll read and try it. Can't hurt anything.
Thanks,
Rich
__
R-help@r-project.org mailing list
On Mon, 19 Sep 2011, Marc Schwartz wrote:
You can look at ?complete.cases for one approach, presuming that it will
work on zoo objects.
Marc,
That's the opposite of what I want. It returns only rows with no missing
data. I'm looking for something that will return rows with _only_ missing
On Mon, 19 Sep 2011, Rich Shepard wrote:
On Mon, 19 Sep 2011, Marc Schwartz wrote:
You can look at ?complete.cases for one approach, presuming that it will
work on zoo objects.
Marc,
That's the opposite of what I want. It returns only rows with no missing
data. I'm looking for something
Hi Iris,
maybe I misinterpret this, but I think in the end it all comes down to
sample(1:3,50,prob=c(0.5,0.15,0.35),replace=T))
cheers
Am 19.09.2011 17:16, schrieb Eekhout, I.:
Hi all,
I would like to replace the for loop in the code below with a function
to improve the speed and to make
sorry, there is a superfluous bracket at the end of the line, it should
be read as
sample(1:3,50,prob=c(0.5,0.15,0.35),replace=T)
Am 19.09.2011 19:08, schrieb Eik Vettorazzi:
Hi Iris,
maybe I misinterpret this, but I think in the end it all comes down to
Dear all,
I would like to solve a problem similar to a multiple knapsack problem and
am looking for a function in R that can help me.
Specifically, my situation is as follows: I have a list of n items which I
would like to allocate to m groups with fixed size. Each item has a certain
profit
On Sep 19, 2011, at 12:01 PM, Rich Shepard wrote:
On Mon, 19 Sep 2011, Marc Schwartz wrote:
You can look at ?complete.cases for one approach, presuming that it will
work on zoo objects.
Marc,
That's the opposite of what I want. It returns only rows with no missing
data. I'm looking
Eekhout, I. wrote on 09/19/2011 10:16:17 AM:
Hi all,
I would like to replace the for loop in the code below with a function
to improve the speed and to make the script more efficient.
The loop creates a vector of integers (x) with the probability of f for
each integer.
The length of f
On Sep 19, 2011, at 12:19 PM, Marc Schwartz wrote:
On Sep 19, 2011, at 12:14 PM, Marc Schwartz wrote:
On Sep 19, 2011, at 12:01 PM, Rich Shepard wrote:
On Mon, 19 Sep 2011, Marc Schwartz wrote:
You can look at ?complete.cases for one approach, presuming that it will
work on zoo
All,
Could anyone recommend a package that allows the user to constrain the
coefficients from a multiple regression equation?
I tried using the gl1ce function in lasso2, but couldn't get it to
work. I created a contrived example to illustrate my starting point.
data(cars)
fmla -
I have a question about what is the best function or package to use to
do the following in R:
minimize Q = g W g' where respect to \gamma
where g is n x 1 vector, W is a n x n matrix and is given,
and g = 1 / T * sum_from_i=1_to_1=60 [ (1-R[i+1] * ( E[i+1]/E[i ]
)^(\gamma) ) ]
In a previous post I detailed the error indicated in the subject. I am
posting now to indicate the problem was likely an incompatibility between
the versions of netcdf (3.6.2) and ncdf (1.6.5). What I did to resolve the
problem was install netcdf-4.1.3 and then reinstalled ncdf_1.6.5.
I have a problem on the R, the truth I have never used this tool
but I need to do some exercises of the university, for example not
how to import a number, I need to know all the steps to make the series
of time with graphics, the differentiation of the series, the
autocorrelation, the vector
On Mon, 19 Sep 2011, Achim Zeileis wrote:
This should do what you want, I think:
R z - zoo(matrix(1:8, ncol = 2), Sys.Date() + 0:3)
R z[2,2] - NA
R z[3,] - NA
R z
2011-09-19 1 5
2011-09-20 2 NA
2011-09-21 NA NA
2011-09-22 4 8
R z[!apply(is.na(z), 1, all),]
2011-09-19 1 5
2011-09-20 2
Roger:
1. Constrain how? Via a penalty? Via a linear or nonlinear equations or
inequalities on the coefficients? You need to be explicit.
2. The above point and:
I started with the example, but I think my data is more Gaussian than
binomial. This returns the following errors.
--
both
Good afternoon/morning readers. This is the first time I am trying to run
some Bayesian computation in R, and am experiencing a few problems.
I am working on a Poisson model for cancer rates which has a conjugate Gamma
prior.
1) The first question is precisely how I work out the parameters.
Dear R-Users,
in the configuring file of R on the supercomputer I am using I found a line
--disable-openmp (version R 2.13.1)
Is there a possibility to enable this when I let run a BATCH file via R CMD?
Thanks for comments!
Simon
__
On Mon, 19 Sep 2011, Marc Schwartz wrote:
Is there a way to omit only those rows where all columns contain 'NA'?
You can look at ?complete.cases for one approach, presuming that it will
work on zoo objects.
Marc,
Do I even need to worry about these NAs? Thanks to Gabor I have a data
I thought that invisible works like return()
However, it appears that it doesn't exit a function. Is it supposed to work
this way?
funInvisible = function(){
invisible(10)
cat('I was not expecting this to print\n')
cat('because it occurs after the invisible return\n')
}
On 11-09-19 5:11 PM, Gene Leynes wrote:
I thought that invisible works like return()
However, it appears that it doesn't exit a function. Is it supposed to work
this way?
Yes, invisible() just marks its argument as non-printing. You still
need to return it. (The man page is a little
On Mon, 19 Sep 2011, Rich Shepard wrote:
On a related note, I'm reading the zoo help pages and vignettes but do
not see the syntax for specifying which stream/parameter pair I want to
plot. What do I read to learn how to do this?
I think that my reading answered this question, but now I
On Sep 19, 2011, at 4:00 PM, Rich Shepard wrote:
On Mon, 19 Sep 2011, Marc Schwartz wrote:
Is there a way to omit only those rows where all columns contain 'NA'?
You can look at ?complete.cases for one approach, presuming that it will
work on zoo objects.
Marc,
Do I even need to
On Mon, Sep 19, 2011 at 5:33 PM, Marc Schwartz marc_schwa...@me.com wrote:
On Sep 19, 2011, at 4:00 PM, Rich Shepard wrote:
On Mon, 19 Sep 2011, Marc Schwartz wrote:
Is there a way to omit only those rows where all columns contain 'NA'?
You can look at ?complete.cases for one approach,
On Mon, 19 Sep 2011, Marc Schwartz wrote:
Let me start by acknowledging that I have little practical experience in
time series analyses, much less proficiency with the zoo package. I just
don't come across them much in clinical trials/studies, at least the ones
that I have been involved with
On Mon, 19 Sep 2011, Gabor Grothendieck wrote:
For accurate information on the design of zoo read
vignette(zoo-design)
and the other four vignettes and as well as the help files in the zoo
package.
Gabor,
That's what I've done today. Haven't totally absorbed everything but I do
have a
You may perhaps want to be more specific about your problem then First
option don't gave results as good. May another method ... ? if you want
help...
I'm not entirely sure what your problem with this sort of discrete numerical
integration is, other than you are making it too hard:
rectIntegrate
On Mon, Sep 19, 2011 at 5:24 PM, Rich Shepard rshep...@appl-ecosys.com wrote:
On Mon, 19 Sep 2011, Rich Shepard wrote:
On a related note, I'm reading the zoo help pages and vignettes but do
not see the syntax for specifying which stream/parameter pair I want to
plot. What do I read to learn
On Sep 19, 2011, at 5:06 PM, Gabor Grothendieck wrote:
On Mon, Sep 19, 2011 at 5:33 PM, Marc Schwartz marc_schwa...@me.com wrote:
On Sep 19, 2011, at 4:00 PM, Rich Shepard wrote:
On Mon, 19 Sep 2011, Marc Schwartz wrote:
Is there a way to omit only those rows where all columns contain
Hi Rich,
On Sep 19, 2011, at 5:18 PM, Rich Shepard wrote:
On Mon, 19 Sep 2011, Marc Schwartz wrote:
Let me start by acknowledging that I have little practical experience in
time series analyses, much less proficiency with the zoo package. I just
don't come across them much in clinical
On Mon, Sep 19, 2011 at 7:42 PM, Marc Schwartz marc_schwa...@me.com wrote:
On Sep 19, 2011, at 5:06 PM, Gabor Grothendieck wrote:
On Mon, Sep 19, 2011 at 5:33 PM, Marc Schwartz marc_schwa...@me.com wrote:
On Sep 19, 2011, at 4:00 PM, Rich Shepard wrote:
On Mon, 19 Sep 2011, Marc Schwartz
On Mon, 19 Sep 2011, Marc Schwartz wrote:
Having a better idea of your domain, you might want to consider looking at
the r-sig-ecology list as a supplement to R-help:
https://stat.ethz.ch/mailman/listinfo/r-sig-ecology
Done. Thanks.
Rich
--
Richard B. Shepard, Ph.D. |
On Mon, Sep 19, 2011 at 7:42 PM, Marc Schwartz marc_schwa...@me.com wrote:
On Sep 19, 2011, at 5:06 PM, Gabor Grothendieck wrote:
On Mon, Sep 19, 2011 at 5:33 PM, Marc Schwartz marc_schwa...@me.com wrote:
On Sep 19, 2011, at 4:00 PM, Rich Shepard wrote:
On Mon, 19 Sep 2011, Marc Schwartz
On Mon, 19 Sep 2011, Gabor Grothendieck wrote:
names(z) gives the column names of zoo object z.
# get a list of date ranges
lapply(1:ncol(z), function(i) range(time(na.omit(z[, i]
Gabor,
That combination is just what I was looking for. Now I can start using my
new knowledge on these
On Mon, Sep 19, 2011 at 8:34 PM, Rich Shepard rshep...@appl-ecosys.com wrote:
On Mon, 19 Sep 2011, Gabor Grothendieck wrote:
names(z) gives the column names of zoo object z.
# get a list of date ranges
lapply(1:ncol(z), function(i) range(time(na.omit(z[, i]
If z has column names (but
Hi,
I noticed the mistake, first thing is double escape, so it should be \\.BO
instead of \.BO . Second and more important observation is tickers$V1.
Thanks for pointing out David and thank you all for the help.
Best regards,
Krishna
-Original Message-
From: David Winsemius
On Mon, Sep 19, 2011 at 7:52 PM, Marc Schwartz marc_schwa...@me.com wrote:
Hi Rich,
On Sep 19, 2011, at 5:18 PM, Rich Shepard wrote:
On Mon, 19 Sep 2011, Marc Schwartz wrote:
Let me start by acknowledging that I have little practical experience in
time series analyses, much less
Hi,
Take a look at example 2 in
require(exactRankTests)
?perm.test
If that does not help at all, could you please let us know what you did and
how?
HTH,
Jorge
On Sun, Sep 18, 2011 at 7:29 PM, song_gpqg wrote:
Hi!
I am doing a two sample permutation test and trying to find confidence
84 matches
Mail list logo