Hi,
I am drawing several plots and want to have italics in a main title;
this is easy with expression(). However, I want also to add a value to
it, say n_i, that depends on an ith plot. For this I am using paste().
An example: n_i = 10, 20, 30; I want to draw a plot for each i with
the title:
[EMAIL PROTECTED]:
p0- c(f=0.87, b=0.1, c=150)
f-p[1]; b-p[2]; c-p[3]
Do *not* redefine the meaning of the function c() to 150, or to p[3].
If you do, very few things in R will continue to work properly!
--
Karl Ove Hufthammer
__
Actually I can afford for it. Think that Think
Jorge Ivan Velez wrote:
Anything else?
Jorge
On Sun, Jun 1, 2008 at 5:30 PM, ensark [EMAIL PROTECTED] wrote:
hý, I am preparing undergraduate thesis If you help me this would make
me
feel good.
First I need to analyze effect
:D You are quite polite. Keep the change :)
Richardson, Patrick wrote:
would you like coffee with that?
From: [EMAIL PROTECTED] [EMAIL PROTECTED] On
Behalf Of ensark [EMAIL PROTECTED]
Sent: Sunday, June 01, 2008 5:30 PM
To: r-help@r-project.org
Example:
n - c(10,20,30)
par(mfrow=c(2,2))
for(i in seq_along(n))
plot(1, main=substitute(Relative efficiency for sample size *
{italic(n) == ni}, list(ni=n[i])))
Best,
Uwe Liugges
Marcin Kozak wrote:
Hi,
I am drawing several plots and want to have italics in a main title;
this is
Hello useRs,
tolstoy is back up and running again.
Robert
On Sunday 01 June 2008 8:07, Carl Witthoft wrote:
Anyone know what's up w/ tolstoi.newcast.edu.au (home of the threaded
R-help archives)? I've got a can't connect for several days now.
Carl
--
Robert King, Statistics, School of
Hi
I did not see any response yet so I try a kick. Each object in R has some
attributes which can be revealed by
attributes(object)
Some of them are useful for methods and tell R how to handle particular
object with a method. There are other options how to evaluate your object
e.g. str,
See ?rbind.
Gabor
On Mon, Jun 02, 2008 at 02:03:38AM -0700, Muhammad Azam wrote:
Dear R users
I have a problem regarding an addition of an extra row to a matrix. e.g. i
have a matrix
a - matrix(1:6,2,3)
a
[,1] [,2] [,3]
[1,]135
[2,]246
I want to add a
Thanks but it swaps in both cases only the data:
FemMal_88[c(61,62)]=FemMal_88[c(62,61)]
FemMal_88[,c(61,62)]=FemMal_88[,c(62,61)]
Greets
B.
Karl Ove Hufthammer-4 wrote:
Birgit Lemcke:
I have a dataframe and two of my variables are in the wrong position
and I would like to swap
2008/5/31 Dirk Eddelbuettel [EMAIL PROTECTED]:
Paul,
On 30 May 2008 at 15:47, Paul Hewson wrote:
| Hello,
|
| We have R working with Rmpi/openmpi, but I'm a little worried.
Specifically, (a) the -np flag doesn't seem to override the hostfile (it
works fine with fortran hello world)
Hello R-user community!
I am running R 2.7.0 on a Power Book (Tiger). (I am still R and
statistics beginner)
I have a problem that is certainly solved very easily but presently I
don`t know how.
I have a dataframe and two of my variables are in the wrong position
and I would like to
On Mon, Jun 2, 2008 at 11:59 AM, Blubbele [EMAIL PROTECTED] wrote:
Thanks but it swaps in both cases only the data:
FemMal_88[c(61,62)]=FemMal_88[c(62,61)]
FemMal_88[,c(61,62)]=FemMal_88[,c(62,61)]
The following works:
d - data.frame(a=c(1,2),b=c(3,4))
d - d[,c(2,1)]
Paul
On 02-Jun-08 09:03:38, Muhammad Azam wrote:
Dear R users
I have a problem regarding an addition of an extra row to a matrix.
e.g. i have a matrix
a - matrix(1:6,2,3)
a
[,1] [,2] [,3]
[1,]135
[2,]246
I want to add a matrix having just one row. e.g.
b -
Dear R users
I have a problem regarding an addition of an extra row to a matrix. e.g. i
have a matrix
a - matrix(1:6,2,3)
a
[,1] [,2] [,3]
[1,]135
[2,]246
I want to add a matrix having just one row. e.g.
b - matrix(7:9,1,3)
b
[,1] [,2] [,3]
[1,]789
Ted,
You may also want to try the function report of the npmc package.
For example,
report(Have a nice day!, style=underline, char=*)
gives
Have a nice day!
Regards,
Klaus.
Message: 16
Date: Sun, 01 Jun 2008 19:43:17 +0100 (BST)
From: (Ted
Deepayan Sarkar:
Is there a way to decrease this space/margin? I could not find any
information about it in the documentation.
I think you are looking for the 'zoom' argument (described under '...').
Thank you. That worked like a charm.
--
Karl Ove Hufthammer
Dear R-users,
I use Sweave for quite a long time but I still wonder what is the difference
between snw and rnw files. Why these two file extensions ? I searched the
web without success.
Thanks for your answers.
Delphine Fontaine
__
Hi.
I am trying to load the package fSeries, in order to load the package
fGarch after.
However, it says the following message.
local({pkg - select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
Loading required package: fBasics (Error : ...
Birgit Lemcke:
I have a dataframe and two of my variables are in the wrong position
and I would like to swap those variables.
To swap column 1 and 2, try
d[c(1,2)]=d[c(2,1)]
Note that this is different from
d[,c(1,2)]=d[,c(2,1)]
which will swap the data, but not the column names.
--
On 02-Jun-08 10:33:19, LANGOHR, KLAUS wrote:
Ted,
You may also want to try the function report of the npmc package.
For example,
report(Have a nice day!, style=underline, char=*)
gives
Have a nice day!
Regards,
Klaus.
Thanks, Klaus! The trick in that case, from
Thanks Paul.
I am not sure if I understood well, but when I do it then I have only two
columns left:
L3 - LETTERS[1:3]
(d - data.frame(cbind(x=1, y=1:10, z=11:20), fac=sample(L3, 10,
replace=TRUE)))
x y z fac
1 1 1 11 C
2 1 2 12 B
3 1 3 13 B
4 1 4 14 C
5 1 5 15 C
6
On Mon, Jun 2, 2008 at 1:04 PM, Birgitle [EMAIL PROTECTED] wrote:
Thanks Paul.
I am not sure if I understood well, but when I do it then I have only two
columns left:
L3 - LETTERS[1:3]
(d - data.frame(cbind(x=1, y=1:10, z=11:20), fac=sample(L3, 10,
replace=TRUE)))
x y z fac
1 1 1
On 6/2/2008 7:25 AM, Delphine Fontaine wrote:
Dear R-users,
I use Sweave for quite a long time but I still wonder what is the difference
between snw and rnw files. Why these two file extensions ? I searched the
web without success.
Thanks for your answers.
There is no difference from the
CLG == Celine LE-GOAZIGO [EMAIL PROTECTED]
on Mon, 2 Jun 2008 13:19:35 +0200
CLG Hi.
CLG
CLG I am trying to load the package fSeries, in order to load
CLG the package
CLG fGarch after.
CLG However, it says the following message.
Dear Celine,
Please make sure that all your
keunhchoi at gmail.com writes:
Here is a clean version. I did this with nls and it works (see below), but
I need to do it with optim. Keun-Hyung
Great that you got it to work! Just curious if there is any reason why one
should use optim when nls works fine? If this should be on a
That works perfect.
Thanks a lot Paul!
Greets
Birgit
Paul Smith wrote:
On Mon, Jun 2, 2008 at 1:04 PM, Birgitle [EMAIL PROTECTED]
wrote:
Thanks Paul.
I am not sure if I understood well, but when I do it then I have only two
columns left:
L3 - LETTERS[1:3]
(d -
I have a problem with the ylabs in barplot. When I draw the bars
horizontal the text for the y axis is not drawn horizontal too.
The text remains vertical. How can I change that. Thank's for your advice.
There is an example below.
##Example
plot.new()
jib -
Try this:
bp - barplot(jib, horiz=TRUE, yaxt = 'n')
axis(2, at = bp, labels = colnames(jib), tick = FALSE, las = 2)
On Mon, Jun 2, 2008 at 10:00 AM, dat [EMAIL PROTECTED] wrote:
I have a problem with the ylabs in barplot. When I draw the bars horizontal
the text for the y axis is not drawn
Dear dat,
Try this:
barplot(jib, horiz=TRUE,las=1)
HTH,
Jorge
On Mon, Jun 2, 2008 at 9:00 AM, dat [EMAIL PROTECTED] wrote:
I have a problem with the ylabs in barplot. When I draw the bars horizontal
the text for the y axis is not drawn horizontal too.
The text remains vertical. How can
I'm trying to da an optimization for the followig function
Zwischenwert - function (x)
{
lambda-x[1];
mu-x[2];
gammal-x[3];
mud-x[4];
gammad-x[5];
Mittelwert -0;
for(t in 0:(T-1))
{
for(i in 0:(n-1))
{
Hi,
This is likely an stupid question, but I cannot find the solution.
I am searching for an exit function, to end the execution of an R
script if some condition is not filled.
Any clue?
Thank you in advance!
Federico
__
R-help@r-project.org mailing
on 06/02/2008 08:00 AM dat wrote:
I have a problem with the ylabs in barplot. When I draw the bars
horizontal the text for the y axis is not drawn horizontal too.
The text remains vertical. How can I change that. Thank's for your advice.
There is an example below.
##Example
plot.new()
jib -
on 06/02/2008 08:18 AM Federico Abascal wrote:
Hi,
This is likely an stupid question, but I cannot find the solution.
I am searching for an exit function, to end the execution of an R
script if some condition is not filled.
Any clue?
Thank you in advance!
Federico
See ?stop and ?stopifnot
try this:
stop(Message)
warning(Message)
Best
Markus
Federico Abascal schrieb:
Hi,
This is likely an stupid question, but I cannot find the solution.
I am searching for an exit function, to end the execution of an R
script if some condition is not filled.
Any clue?
Thank you in advance!
On 2 Jun 2008, at 15:18, Federico Abascal wrote:
Hi,
This is likely an stupid question, but I cannot find the solution.
I am searching for an exit function, to end the execution of an R
script if some condition is not filled.
Any clue?
f - function() {
...
if (1 == 1) return(WHATEVER)
On Mon, Jun 02, 2008 at 12:29:06PM +0200, Marce wrote:
Hi Dirk, now I'm using R and OpenMPI in a cluster. Could you link me
some pages of information about this? I'm interesting about the
installation, all the pages i've seen it's with LAM..
Really i've just installed R and Rmpi, but I have
Hi,
I have a data frame which format is like below:-
X Y Z
131 22.2 3.4 4.4
150 20.0 12.2 4.5
etc...
And I have sorted the data frame. However, I would like to grab one of these
elements in the data frame. Also, i would like to number these rows so that
when i grab a
I had no on-list replies, so I cobbled up a function for the simplest
method I could think of -- iterative multivariate trimming, following
Gnanadesikan, Kettering Wilks, assigning 0 weights to observations
based on the Mahalanobis D^2 of residuals.
But I'm getting an error I don't understand,
Jason Lee:
I have a data frame which format is like below:-
X Y Z
131 22.2 3.4 4.4
150 20.0 12.2 4.5
etc...
And I have sorted the data frame. However, I would like to grab one of
these elements in the data frame. Also, i would like to number these rows
so that when i grab
on 06/02/2008 08:45 AM Jason Lee wrote:
Hi,
I have a data frame which format is like below:-
X Y Z
131 22.2 3.4 4.4
150 20.0 12.2 4.5
etc...
And I have sorted the data frame. However, I would like to grab one of these
elements in the data frame. Also, i would like to
Hola, es la primera vez que mando un correo a cualquiera de las listas de
correo de R y no se si esta consulta se ajusta al próposito de la r-help
list o debería haberlo mandado a otra de las listas que hay.
Mi problema es el siguiente: Estoy desarrollando un programa en java con
llamadas a R y
Dear R-users,
I have written a short VB application to clean and format my R code.
Everything works fine except one small issue that I did not expected; it
is related the automatic replacement of assignment signs from = to
-. Most functions or arguments seem to accept either = or -, but
some
Hi Petr,
Thanks for your reply. See below.
At 05:58 AM 6/2/2008, Petr PIKAL wrote:
Hi
I did not see any response yet so I try a kick. Each object in R has some
attributes which can be revealed by
attributes(object)
Some of them are useful for methods and tell R how to handle particular
Sébastien wrote:
Dear R-users,
I have written a short VB application to clean and format my R code.
Everything works fine except one small issue that I did not expected; it
is related the automatic replacement of assignment signs from = to
-. Most functions or arguments seem to accept
To discover the available methods use the methods function, e.g.
example(by) # script creates a variable tmp of class by
class(tmp) # by
methods(class = by) # describe.by print.by
Also try this:
by # by is S3 generic since it uses UseMethod
function (data, INDICES, FUN, ...)
UseMethod(by)
I would like to know if there's a package in R that enables to get a
non-parametric regression (OLS, not quantile) that would have a positive (or
negative) convexity constraint, as well as monotonicity.
Right now, I have only found two packages (fdrtool and cir) that enable to
impose only
When using anova method, all of the printed results are scaled by the RSS for
the top node. Therefore the relative error measures for the trees already are
1-R^2.
tfit - rpart(time ~ ., lung)
summary(tfit)
CP nsplit rel error xerror xstd
1 0.03665178 0
Chip Barnaby:
My question is: How does one learn the specifics? For the case at
hand, what are the specialized methods associated with class by?
The methods for the (S3) generic function 'by':
$ methods(by)
[1] by.data.frame by.default
Functions for objects of class 'by':
$
No function accepts - in place of =. In the first
of the 4 examples below we are simply setting
variable b to 10 and then passing it to f as its
first argument. f(b = 10) would be different since
that specifies that we want argument b to take
on the value of 10.
f - function(a=1, b=2) a-b
#
I have some data with two categorises plus/minus (p53) and a particular
time (Time) and the outcome is a continuous vairable (Result). I set up
a maximum model.
ancova - lm(Result~Time*p53)
summary(ancova)
..
Coefficients:
Estimate Std. Error t value Pr(|t|)
(Intercept) 0.05919
I am using hclust and plot to produce dendrograms. Using my input data I am
able to complete an analysis and obtain a vertical plot.
I want to be able to plot the dendrogram horizontally.I am using version 2.6
of R and have updated my packages recently.
Using the sample script for dendrograms I
Hello, this is the first time I send a mail to r-help mailing list.
Mi problema es el siguiente: I'm developing a program in java with calls in
R and I can`t use jri 0.4-1 with R 2.7 or 2.6 .but it runs with 2.4.
The problem that I get when using the latest version of R is as follows:
Cannot
Dear R users,
I'm looking for a function to align multiple waveforms that contain
random phase shifts.
The Woody Average is one such method -- is there any comparable
function already coded for R?
Matlab code for this type of average exists
Hi,
I would like to replace A B by A-B and AA(DD) by
AA using a single gsub. Is that possible besides using two gsub ?
Thanks
Stanley
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
...
Indeed, but note that both %in% and intersect() are essentially wrappers for
match() .
Cheers,
Bert Gunter
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Philipp Pagel
Sent: Saturday, May 31, 2008 2:27 PM
To: r-help@r-project.org
Subject: Re: [R]
On Mon, Jun 2, 2008 at 4:31 PM, François Aucoin [EMAIL PROTECTED] wrote:
I would like to solve the following function in R:
G - function(k) (2*(1 - k)*(1 + 2*k)^.5)/(1+3*k)
I want to be able to find k for a given G
Consider G(k)-g. With plot look for intervals where the roots lie in.
Hello,
I have carried out an lda analysis using the lda function of MASS
package. I have plotted the LD1xLD2 to represent the data. Now I would
like to get the centroids for each group of data and plot it on the
LD1xLD2 graph. How can I get the centroid value from the lda object?
Best,
Dani
I would like to solve the following function in R:
G - function(k) (2*(1 - k)*(1 + 2*k)^.5)/(1+3*k)
I want to be able to find k for a given G
Thanks!
Francois Aucoin
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
Thanks Erik and Gabor for this precision,
I guess that my misunderstanding of these concepts came from some bad
habits I took during my self-learning experience of R (especially,
copy/paste of old codes where - was used for function arguments and did
not produce error messages).
Sebastien
Dear Rusers,
My manuscript has been conditionally accepted recently. The problem to
generate the high resolution figures in R for the manuscript cannot be
solved by me.
The journal editor ask me to generate the figures with a minimum resolution
of 500 dpi. I have tried the *menu-driven method*
Dear all:
I am searching for a regression model (e.g. y=Xb+e) in which dummy-coded events
(to time point t) on different regressors in X exhibit an effect on subsequent
responses in the vector y (to time-points t+1, t+2,… t+n). My aim is to
estimate how long the memory effect is and how strong
On Mon, 2 Jun 2008, Dani Valverde wrote:
Hello,
I have carried out an lda analysis using the lda function of MASS package. I
have plotted the LD1xLD2 to represent the data. Now I would like to get the
centroids for each group of data and plot it on the LD1xLD2 graph. How can I
get the
Sébastien wrote:
Thanks Erik and Gabor for this precision,
I guess that my misunderstanding of these concepts came from some bad
habits I took during my self-learning experience of R (especially,
copy/paste of old codes where - was used for function arguments and did
not produce error
Hello R Freaks,
I calculate the difference in days between two events with the following
litte R expresseion:
T1a - strptime(T1,%m/%d/%y %H:%M:%S);
T2a - strptime(T2,%m/%d/%y %H:%M:%S);
T1b - as.Date(T1a);
T2b - as.Date(T2a);
days - T2b-T1b;
time - T2a - T1a;
In the project I would like to
This was already answered by two people when you posted
it the first time.
On Mon, Jun 2, 2008 at 12:34 PM, Thorsten Muehge [EMAIL PROTECTED] wrote:
Hello R Freaks,
I calculate the difference in days between two events with the following
litte R expresseion:
T1a - strptime(T1,%m/%d/%y
François Aucoin frank.aucoin at gmail.com writes:
I would like to solve the following function in R:
G - function(k) (2*(1 - k)*(1 + 2*k)^.5)/(1+3*k)
G - function(k) (2*(1 - k)*(1 + 2*k)^.5)/(1+3*k)
GZero -function(k,G0) G(k)-G0
plot(1:100,G(1:100))
uniroot(GZero,c(0,100),G=-5)
Dear Charles,
the sample code you cite has an additional as.dendrogram compared to
your code. Hence, dend1 is of class dendrogram (class(dend1)) and if you
call plot(dend1) the method for dendrograms (i.e., plot.dendrogram) is
executed which has a horiz argument; confer ?plot.dendrogram.
The production of publication-quality graphics has been discussed at
great length on R-sig-eco over the past week or so. The archive is
available here:
https://stat.ethz.ch/pipermail/r-sig-ecology/2008-May/thread.html
and the thread is very near the bottom. Very detailed recommendations
have been
On 02.06.2008, at 17:27, Ng Stanley wrote:
I would like to replace A B by A-B and AA
(DD) by
AA using a single gsub. Is that possible besides using two
gsub ?
Could you be a bit more precisely?
If you are dealing with two fix strings then you can write
On 6/2/2008 11:12 AM, zhijie zhang wrote:
Dear Rusers,
My manuscript has been conditionally accepted recently. The problem to
generate the high resolution figures in R for the manuscript cannot be
solved by me.
The journal editor ask me to generate the figures with a minimum resolution
of 500
__
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, reproducible code.
Hola Borja,
Creo que vas a tener muy pocas respuestas a menos que escribas a la
lista en inglés. Lamentablemente yo conozco poco de Java y no puedo
responder tu pregunta.
Saludos,
Julian
Borja Soto Varela wrote:
Hola, es la primera vez que mando un correo a cualquiera de las listas de
I am trying to set up a function which processes my data according to the
following rules:
1. if (x[i]==0) NA
2. if (x[i]0) log(x[i]/(number of consecutive zeros immediately preceding
it +1))
The data this will apply to include a variety of whole numbers not limited
to 1 0, a number of which
Hello to everyone,
I am new to programming in R and am having trouble with the following
two commands
1.I am running a simple 1 line script read.table(file=C:\\Document and
Settings\\All Users\\Desktop\\colon cancer.txt) and the error message I get is
Error in file (file, r): cannot
open the
glmnet is a package that fits the regularization path for linear, two-
and multi-class logistic regression
models with elastic net regularization (tunable mixture of L1 and L2
penalties).
glmnet uses pathwise coordinate descent, and is very fast.
Some of the features of glmnet:
* by default
?read.table
And don't forget the at the end of your filename
HTH
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Adams
Sent: Monday, June 02, 2008 2:34 PM
To: r-help@r-project.org
Subject: [R] print and read.table commands
Hello to everyone,
I
Hello all,
I used pushViewport to create a viewport with a 9*8 layout(using layout:
lay-grid.layout(9,8).) In each cell, I used lattice to draw plots. In the final
output, if I used the trellis.device(),i.e., the default device, the 9*8 plots I
intend to draw seem ok in terms of the letter size
Try this:
path - file.choose()
1)
read.table(path)
2)
file.show(path)
On Mon, Jun 2, 2008 at 3:33 PM, Paul Adams [EMAIL PROTECTED] wrote:
Hello to everyone,
I am new to programming in R and am having trouble with the following
two commands
1.I am running a simple 1 line script
Dear R People:
I have updated the RcmdrPlugin.epack with new menus, and added:
additive decomposition;
HoltWinters;
Exponential smoothing.
Thanks to many for their help in the process!
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
Hello to everyone,
I have gotten my file to print to screen but when I use read.table I am getting
an error message that
says there are more columns than column names.This is a file that was not
created by me so I am
not sure how to investigate and solve this problem.I looked in the help file
on 06/02/2008 01:30 PM T.D.Rudolph wrote:
I am trying to set up a function which processes my data according to the
following rules:
1. if (x[i]==0) NA
2. if (x[i]0) log(x[i]/(number of consecutive zeros immediately preceding
it +1))
The data this will apply to include a variety of whole
Dear Paul,
Perhaps
read.delim2()
can do the job easily.
HTH,
Jorge
On Mon, Jun 2, 2008 at 3:41 PM, Paul Adams [EMAIL PROTECTED] wrote:
Hello to everyone,
I have gotten my file to print to screen but when I use read.table I am
getting an error message that
says there are more columns
Hi Paul,
The easiest thing to to is to open the file using a text editor (Notepad
will do) and examine the first few lines. You can add add a column name
if needed.
Julian
Paul Adams wrote:
Hello to everyone,
I have gotten my file to print to screen but when I use read.table I am getting
Hello,
I'm trying to sample in Random Forests by a factor, but it is a regression
problem and I can't figure out how to do this (I can only see how to sample by
strata in classification).
Thanks
Jesse Lasky
__
R-help@r-project.org mailing list
You are absolutely correct Marc; thank you for making this assumption!
While it will take some time for me to rightfully understand the logical
ordering of your proposed function, it certainly seems to produce the result
I was looking for, and economically at that. rle is indeed highly
Here is an alternative approach to saving the itterations:
testfunc - function(data) {
ms.mat - matrix(nrow=0, ncol=2)
f1 - function(ms, data){
ms.mat - rbind(ms.mat, ms)
-sum( dnorm(data, mean=ms[1], sd=ms[2], log=TRUE) )
}
out1 -
On 3/06/2008, at 2:56 AM, Daniel Brewer wrote:
I have some data with two categorises plus/minus (p53) and a
particular
time (Time) and the outcome is a continuous vairable (Result). I
set up
a maximum model.
ancova - lm(Result~Time*p53)
summary(ancova)
..
Coefficients:
An alternative way to draw the symbols (or some approximation of them) is to
use the my.symbols function from the TeachingDemos package along with ms.male
and ms.female (or your improvement of these, also from the TeachingDemos
package). See the 4th example from ?ms.male (or ?ms.female).
Hope
On 3/06/2008, at 1:18 AM, Federico Abascal wrote:
Hi,
This is likely an stupid question, but I cannot find the solution.
I am searching for an exit function, to end the execution of an R
script if some condition is not filled.
Any clue?
Others have suggested using stop(). It might be the
Colleagues,
I have a script that contains ~ 10,000 lines of code. Most of it is
written as small functions. However, for various reasons, the final
function is ~1500 lines of code. I realize that this may not be
optimal but the code evolved that way and breaking it into smaller
pieces
On 02/06/2008 5:28 PM, Dennis Fisher wrote:
Colleagues,
I have a script that contains ~ 10,000 lines of code. Most of it is
written as small functions. However, for various reasons, the final
function is ~1500 lines of code. I realize that this may not be
optimal but the code evolved
Hi the list.
I got a probleme with R CMD check. I run a package.skeleton on a very
simple code (four toy function, no probleme with the R CMD build). But
on the R CMD check packClassique, I get :
* checking for unstated dependencies in R code ... WARNING
Erreur dans .find.package(package,
I would like to set up a Windows XP environment with R and MySQL.
This set-up was recommended by a friend who uses this set up, but I
have been unable to get RJDBC to work. I have installed all of the
software today (June 2 2008), first deleting and then replacing old
versions of software.
The
Hi,
If there are more than one item having the same value, how can i use R to
take the average of the position. E.g:-
X Y Z
131 22.2 3.4 4.4
132 20.0 3.4 4.4==Position 2 if queried
150 20.0 12.2 4.5 =Position 3 if queried
134 20.0 3.4 4.4 == Position4 if queried
159 20.0
I can't comment on problems with RJDBC but I can say that if you want to
access MySQL from R, I have had very little difficulty doing it with
RODBC. The only difficulty I have experienced is in getting the MySQL 5.0
server started, which after hours of trying I avoided by using MySQL 5.1.
Thanks for the above mentioned methods. I will try them one by one.
Thanks again.
On 6/3/08, Sarah Goslee [EMAIL PROTECTED] wrote:
The production of publication-quality graphics has been discussed at
great length on R-sig-eco over the past week or so. The archive is
available here:
I have two data sets data1 and data2 with no column names( No header). The
first coluimn in both data sets represents the case ID. How can I tell R to
merge the two data sets by the case ID if there is no header? Also, In data1
I have more cases and I would like the result of the merge to have
Hello,
I have a large dataset [536436,4]
I'd like to partition the dataset into 999 groups of 564 rows and output
each group as a CSV files... Obviously I could do this longhand but I know
it is somehow possible to write a loop to do the same thing...
I'd like to group such that the first
Hello,
I'm having issues operating R under Ubuntu (Hardy 8.04) though I suspect
this is not necessarily the malady. I have attempted to run R in ubuntu
as is which worked for awhile and then stopped (using RKWard as the
windowing environment). I tried removing then re-installing the software
Hi,
Is there anyone have some experience in the boost package. I used the
logitboost function to do the two-class classification.
This is the format I used.
logitboost(xtrain, ytrain, xtest, presel = 2, mfinal = 100) # with feature
selection
logitboost(xtrain, ytrain, xtest, presel =
1 - 100 of 117 matches
Mail list logo