Hi Brandon,
>> ...is it sufficient to leave the values as they are or should I generate
>> unique names for all
>> combinations of sleeve number and temperature, using something like
>> > data$sleeve.in.temp <- factor(with(data, temp:sleeve)[drop=TRUE])
You might be luckier posting this on
htt
On Tue, 12 Aug 2008, someone with no signature wrote:
Maura E Monville gmail.com> writes:
Is the FastICA R implementation as good as the MatLab Implementation ?
I would appreciate talking to someone who has used FastICA for R.
The fastICA packages for Matlab and R (and there is even a vers
On Tue, 12 Aug 2008, Prof Brian Ripley wrote:
On Mon, 11 Aug 2008, Dong-hyun Oh wrote:
Dear useRs,
When I executed help.search(), I got nothing other than the following
warning message.
R> help.search("print")
Error in help.search("print") :
(converted from warning) removing all entries wi
Dear Amelie,
> Le service Beep n'est pas lanc‚.
this can be fixed by passing an additional argument beep.off = FALSE to
the rsaga.geoprocessor function; the most recent RSAGA release on CRAN
does not cause this problem any more, I recommend you to update the
package in your installation. The
Hello,
I am struggling for some time now to estimate AR(1) process for commodity price
time series. I did it in STATA but cannot get a result in R.
The equation I want to estimate is: p(t)=a+b*p(t-1)+error
Using STATA I get 0.92 for a, and 0.73 for b.
Code that I use in R is:
p<-matrix(data
Hello everybody,
it looks that there is probably a problem with the libglade. I installed
the rattle package and after start I got the following errormessage:
library(rattle)
Rattle, Graphical interface for data mining using R, Version 2.3.65.
Copyright (C) 2008 Togaware Pty Ltd
Type "rattle()
Prof Brian Ripley stats.ox.ac.uk> writes:
>
> On Tue, 12 Aug 2008, someone with no signature wrote:
>
> > Maura E Monville gmail.com> writes:
> >
> >>
> >> Is the FastICA R implementation as good as the MatLab Implementation ?
> >> I would appreciate talking to someone who has used FastICA for
Hi,
lets look at an example:
fit <- lm(sr ~ ., data = LifeCycleSavings)
fit.anova <- anova(fit)
you can see the structure from the anova:
str(fit.anova)
Classes ‘anova’ and 'data.frame': 5 obs. of 5 variables:
$ Df : int 1 1 1 1 45
$ Sum Sq : num 204.1 53.3 12.4 63.1 650.7
$
I have a collection of datasets in separate data frames which have 3
independent test parameters (w, x, y) and one dependent variable (z) ,
together with some additional static test data on each row. What I want
is a data frame which contains the test data, the parameters (w, x, y)
and the mean val
Hello!
Using the package Plotrix I want to do a plot with a broken axis.
So far it's working fine but now I want only the x and y axis plotted
(the x-axis with a gap in it), but not the axes that are reffered to as
axis 3 and 4, and not the lines that additionally mark the gap in the axis.
I tho
Hmm, I have my elements (as in chemical elements) as columns and my samples
as rows. This is the normal way round for all my other analyses. I think I
figured it out... I have 6 groups, all of about 10-12 samples and each with
31 elements. So for each group there are many more elements than sam
Hello R users,
I would like to use an integer and a date as attributes in sqlQuery,
and these arguments
are defined in my function.
Here is my function:
GetReturn<-function(code,date)
{
channel<-odbcConnect("db","user1","password")
ssql<-paste("select * from TABLE Where PF_CODE =",code,"and
how about:
a <- c(1,1,1,1,2,3,4,5,5)
b <- as.data.frame(table(a))
b
a Freq
1 14
2 21
3 31
4 41
5 52
which you can then select the bits you want from.
David
dennis11 wrote:
>
> I want to create a vecor with frequencies.
>
> I have tried this:
>
> a <- c(1,1,1,1,2,3,
Hello R users,
I would like to use an integer and a date as attributes in sqlQuery,
and these arguments are defined in my function.
Here is my function:
GetReturn<-function(code,date)
{
channel<-odbcConnect("db","user1","password")
ssql<-paste("select * from TABLE Where PF_CODE =",code,"and
Hi, I need some help using the R outliers package. I would like to perform a
Q-test (Dixon test) on my data set. I used the dixon.test function, but I
cannot understand what is the confidence level used to perform the test. I
have n=101 (n= number of data). So, can I use directly dixon.test ? What
I want to create a vecor with frequencies.
I have tried this:
a <- c(1,1,1,1,2,3,4,5,5)
b <- table(a)
print (b[1])
which results in:
> print (b[1])
1
4
The only thing I want is the 4.
So this seems obvious:
print (b[1,2])
but it does not work:
Error in b[1, 2] : incorrect number of dimens
I may not have been as wrong as Prof. Ripley suggested when I wrote "The
fastICA packages for Matlab and R (...) have a common origin at the Helsinki
University of Technology."
Please consider the following lines from the 'fastICA' help page (?fastICA):
FastICA algorithm
Description:
On Tue, 12 Aug 2008, Gareth Campbell wrote:
Hmm, I have my elements (as in chemical elements) as columns and my samples
as rows. This is the normal way round for all my other analyses. I think I
figured it out... I have 6 groups, all of about 10-12 samples and each with
31 elements. So for e
On Tue, 12 Aug 2008, Abderrazzak MANY wrote:
Hello R users,
I would like to use an integer and a date as attributes in sqlQuery, and
these arguments
are defined in my function.
Here is my function:
GetReturn<-function(code,date)
{
channel<-odbcConnect("db","user1","password")
ssql<-paste("
I was trying to help someone who used a spanish keyboard on a PC
running Windows. he discovered that he had no tilde key. Does anyone
know of any simple work-arounds?
Thanks,
Hank
Dr. Hank Stevens, Associate Professor
338 Pearson Hall
Botany Department
Miami University
Oxford, OH 45056
Offic
on 08/09/2008 06:06 PM dusa.adrian wrote:
Dear Marc,
Marc Schwartz wrote:
On Fri, 2007-05-18 at 11:25 -0400, Hao Liu wrote:
Dear All:
I am running some GUI functions in linux environment, they runs fine,
however I constantly get this kind of message in R console:
Warning: X11 protocol err
On Tue, 2008-08-12 at 01:21 -0700, dennis11 wrote:
> I want to create a vecor with frequencies.
>
> I have tried this:
>
> a <- c(1,1,1,1,2,3,4,5,5)
> b <- table(a)
> print (b[1])
>
> which results in:
> > print (b[1])
> 1
> 4
> The only thing I want is the 4.
Isn't this one if the situation
Dear R Users,
How can I send commands to the R GUI from within a R script in Microsoft
Windows ? I am trying to get the windows within the R GUI to Tile after I
draw a graph.
Thanks in advance,
Tolga
Generally, this communication is for informational purposes only
and it is not intended as an
On Tue, Aug 12, 2008 at 04:47:14AM -0400, Michael R. Head wrote:
> I have a collection of datasets in separate data frames which have 3
> independent test parameters (w, x, y) and one dependent variable (z) ,
> together with some additional static test data on each row. What I want
> is a data fram
You want the tilde on R?
If yes, you want do this:
plot(1, xlab = "\u0303")
plot(1, xlab = "\u00c3")
plot(1, xlab = "\u00D1")
On 8/12/08, Martin Henry H. Stevens <[EMAIL PROTECTED]> wrote:
> I was trying to help someone who used a spanish keyboard on a PC running
> Windows. he discovered that
Hi,
is anyone aware of estimation functions for threshold vector error correction /
threshold cointegration models?
I didn't find anything for R using RSeek or Google.
Thanks a lot for any pointers,
Werner
__
Do You Yahoo!?
hutz gegen Massenmai
On Tue, Aug 12, 2008 at 01:21:29AM -0700, dennis11 wrote:
>
> I want to create a vecor with frequencies.
>
> I have tried this:
>
> a <- c(1,1,1,1,2,3,4,5,5)
> b <- table(a)
> print (b[1])
>
> which results in:
> > print (b[1])
> 1
> 4
>
> The only thing I want is the 4.
>
> So this seems
The try this:
form <- as.formula('x\u007ey')
lm(form)
On 8/12/08, Martin Henry H. Stevens <[EMAIL PROTECTED]> wrote:
> Thanks Henrique. We need to use the tilde in formula statements as in,
> lm(y ~ x)
>
> Any ideas?
>
> On Aug 12, 2008, at 7:02 AM, Henrique Dallazuanna wrote:
> > You want the ti
Kiran
exonmap is a bioconductor package - I'd suggest trying the bioconductor mailing
list. Also, you're more likely to get a response if you include an informative
subject line.
Regards
Richard.
Kiran Annaiah wrote:
Hello,
A newbie to R. I am trying to use the exonmap package in R.
Acc
Thanks Henrique. We need to use the tilde in formula statements as in,
lm(y ~ x)
Any ideas?
On Aug 12, 2008, at 7:02 AM, Henrique Dallazuanna wrote:
You want the tilde on R?
If yes, you want do this:
plot(1, xlab = "\u0303")
plot(1, xlab = "\u00c3")
plot(1, xlab = "\u00D1")
On 8/12/08, Mar
sowas package by douglas mauran. Type sowas into google.
On Tue, Aug 12, 2008 at 12:14 AM, Yasir Kaheil <[EMAIL PROTECTED]> wrote:
>
> OK, here is the code for those who are interested:
> x<-rnorm(1000, mean=20, sd=100);
> x.s<-scale(x)
> xp<-pnorm(x.s);
> xix<- sort(xp,index.return=TRUE)$ix
> no
Hi
[EMAIL PROTECTED] napsal dne 29.07.2008 17:28:15:
> hi,
> i am seeking for a solution to create a biplot that shows:
> a) data points instead of labels and that
> b) shows two different groups (field: site with two factor levels:
forest/
> corridor) in different colours
>
> i tried to inclu
Sweet - works like a charm. Thanks!
Hank
On Aug 12, 2008, at 7:19 AM, Henrique Dallazuanna wrote:
The try this:
form <- as.formula('x\u007ey')
lm(form)
On 8/12/08, Martin Henry H. Stevens <[EMAIL PROTECTED]> wrote:
Thanks Henrique. We need to use the tilde in formula statements as
in,
lm(y ~
Dear Mark and Adrian,
I was under the impression that these errors were fixed in R 2.4.0; you
could try setting the Rcmdr option suppress.X11.warnings=TRUE and see
whether that helps (but first read the information on the option in
?Commander).
As Mark mentioned, I'm currently at the useR confere
On Mon, 2008-08-11 at 01:25 -0700, john james wrote:
> Dear R-help,
>
> I have a longitudinal dataset with about 5,000 subjects. To avoid overly
> cluttered plot of the individual profile, I want the plot to be shadowed and
> to randomly select say 100 subjects which will be depicted using darke
On Tue, 2008-08-12 at 11:27 +0200, Verena Hoffmann wrote:
> Hello!
> Using the package Plotrix I want to do a plot with a broken axis.
> So far it's working fine but now I want only the x and y axis plotted
> (the x-axis with a gap in it), but not the axes that are reffered to as
> axis 3 and 4,
On Windows you can get any character by Alt+0126 for the decimal code
(which for tilde I think is 126, but I am not on Windows to check it).
On Tue, 12 Aug 2008, Henrique Dallazuanna wrote:
The try this:
form <- as.formula('x\u007ey')
\x73 would be a more compact form.
lm(form)
On 8/12/0
On Tue, 12 Aug 2008, John Fox wrote:
Dear Mark and Adrian,
I was under the impression that these errors were fixed in R 2.4.0; you
could try setting the Rcmdr option suppress.X11.warnings=TRUE and see
whether that helps (but first read the information on the option in
?Commander).
The X11() w
On Tue, 12 Aug 2008, someone with no credentials wrote:
I may not have been as wrong as Prof. Ripley suggested when I wrote "The
fastICA packages for Matlab and R (...) have a common origin at the Helsinki
University of Technology."
Please consider the following lines from the 'fastICA' help pa
OK thanks, Tolga
Prof Brian Ripley <[EMAIL PROTECTED]>
12/08/2008 12:46
To
[EMAIL PROTECTED]
cc
r-help@r-project.org
Subject
Re: [R] Senging commands to the GUI in Windows through a script
On Tue, 12 Aug 2008, [EMAIL PROTECTED] wrote:
> Dear R Users,
>
> How can I send commands to the R
On Tue, 2008-08-12 at 12:04 +0100, Dan Davison wrote:
> > testRuns <- lapply(inputFiles,
> > function(x) {
> > read.table(x, header=TRUE)})
>
> (Just BTW lapply(inputFiles, read.table, header=TRUE) is slightly nicer to
> look at)
Yes, that does look much nicer :-
On Tue, 12 Aug 2008, [EMAIL PROTECTED] wrote:
Dear R Users,
How can I send commands to the R GUI from within a R script in Microsoft
Windows ? I am trying to get the windows within the R GUI to Tile after I
draw a graph.
Not directly (it's possible you can via COM, but there is no R function
Hi R,
This is a very trivial one
C=0.1
I want to check whether my value of C is between 0 and 1 exclusively
I don't want to use (C>0 & C<1). And I can't use a single statement like
(0https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-proje
On Tue, 12 Aug 2008, Prof Brian Ripley wrote:
On Windows you can get any character by Alt+0126 for the decimal code (which
for tilde I think is 126, but I am not on Windows to check it).
On Tue, 12 Aug 2008, Henrique Dallazuanna wrote:
The try this:
form <- as.formula('x\u007ey')
\x73 wou
On Tue, 2008-08-12 at 07:15 -0400, Martin Henry H. Stevens wrote:
> Thanks Henrique. We need to use the tilde in formula statements as in,
> lm(y ~ x)
>
> Any ideas?
Does windows still let you hold down the right alt-key and type ascii
character codes on the number pad?
If so, you should be abl
Hi
[EMAIL PROTECTED] napsal dne 11.08.2008 22:50:08:
> You can use the length() and which() functions for that:
>
> > length(which(m == 2))
Or simply
sum(m == 2)
Regards
Petr
>
> cheers,
> brandon
>
>
> rostam shahname wrote:
> > Hi, I wonder if there is any function which gives the numb
On Tue, Aug 12, 2008 at 05:16:01PM +0530, Shubha Vishwanath Karanth wrote:
> Hi R,
>
>
>
> This is a very trivial one
>
>
>
> C=0.1
>
>
>
> I want to check whether my value of C is between 0 and 1 exclusively
> I don't want to use (C>0 & C<1). And I can't use a single statement
Hello,
I am running R in Eclipse, and when I start Eclipse or when I get
error messages, they are in German.
(My computer's regional language settings are German.) Is there a way
to switch to English in Eclipse
without changing my global regional language settings? In basic R GUI
this is possible
On Tue, 12 Aug 2008, Michael R. Head wrote:
On Tue, 2008-08-12 at 07:15 -0400, Martin Henry H. Stevens wrote:
Thanks Henrique. We need to use the tilde in formula statements as in,
lm(y ~ x)
Any ideas?
Does windows still let you hold down the right alt-key and type ascii
character codes on t
My aim is to create a figure consisting of three maps: Alaska in the
upper left corner, the 48 contiguous US states in the center right, and
Hawaii in the lower left corner. In some ways the figure I'm trying to
create is analogous to figure 1.5 in Paul Murrell's excellent "R
Graphics", which
Or at least anyways of defining a vector/(or something like that) which
has all values between 0 and 1?
For example:
C(0,1) is incorrect, seq(0,1,0.2) is also incorrect, seq(0,1,0.1) is
also incorrect How does one specify this?
Thanks, Shubha
-Original Message-
From: Dan Davis
On Tuesday 12 August 2008, Prof Brian Ripley wrote:
> On Tue, 12 Aug 2008, John Fox wrote:
> > Dear Mark and Adrian,
> >
> > I was under the impression that these errors were fixed in R 2.4.0; you
> > could try setting the Rcmdr option suppress.X11.warnings=TRUE and see
> > whether that helps (but
Dear Brian and Adrian,
Brian: Thanks for pointing out that the messages are not the same as
the warnings that were produced prior to R 2.4.0.
Adrian: If the problem reoccurs with a predictable error message,
please let me know; I'll then alter the Rcmdr code to intercept the Tk
messages as well.
Hi Shubaa,
Here is one way to do this:
is.between <- function(x, a, b) {
x > a & x < b
}
set.seed(123)
x <- rnorm(5)
is.between(x, -1, 1)
> is.between(x, -1, 1)
[1] TRUE TRUE FALSE TRUE TRUE
>
Ravi.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behal
Thanks Ravi... But was just wondering if there existed a simple tricky command
for that without using the & condition
Also was thinking on my second question that how do we define an interval
between 0 and 1 which contains all the values between 0 and 1.
Thanks, Shubha
Shubha Karanth | Amba
Shubha Vishwanath Karanth wrote:
>
> Or at least anyways of defining a vector/(or something like that) which
> has all values between 0 and 1?
>
> For example:
> C(0,1) is incorrect, seq(0,1,0.2) is also incorrect, seq(0,1,0.1) is
> also incorrect How does one specify this?
>
>
Hi
Here is how you check whether a < x < b "without" using the `&' condition:
is.between <- function(x, a, b) {
(x - a) * (b - x) > 0
}
Ravi.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Shubha Vishwanath Karanth
Sent: Tuesday, August 12, 2008 9:46 A
On Tue, 12 Aug 2008, John Fox wrote:
Dear Brian and Adrian,
Brian: Thanks for pointing out that the messages are not the same as
the warnings that were produced prior to R 2.4.0.
Adrian: If the problem reoccurs with a predictable error message,
please let me know; I'll then alter the Rcmdr cod
Dear R users,
I am running a large loop over about 400 files. To outline generally,
the code reads in the initial data file, then uses lookup text files to
obtain more information before connecting to a SQL database using RODBC
and extracting more data. Finally all this is polar plotted.
My proble
ThanksDidn't mean actually using '&', but not bigger than that too...
I usually see something done much better in R-help by a code which I don't know
at all. So, wanted to know if I am missing somewhere in using some codes which
I am not aware of...so, posted the query...
Thanks for your h
But is there a way to construct a S4 method with this syntax : 0 < C < 1 ?
Apparently, it's not possible with S4 group generics "Compare(e1, e2)".
2008/8/12 Ravi Varadhan <[EMAIL PROTECTED]>
> Here is how you check whether a < x < b "without" using the `&' condition:
>
> is.between <- function(
See ?gc - it may help.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Jamie Ledingham
Sent: Tuesday, August 12, 2008 9:16 AM
To: r-help@r-project.org
Subject: [R] Memory allocation problem
Dear R users,
I am running a large loop over about 400 files. To
Not to define a vector of all infinite values... But if I have some object (may
not be a vector) which has this interval, then I can apply whatever function I
need to on this interval apart from 'between' function... Is there something
like that... Hope I am clear with the idea...
Thanks, Shubh
On Thu, 2008-08-07 at 14:11 -0700, Deepayan Sarkar wrote:
> On Thu, Aug 7, 2008 at 7:55 AM, Gavin Simpson <[EMAIL PROTECTED]> wrote:
> > Dear List,
>
> You need to use the proper subset of rows of X:
[Apologies for the delay in responding --- I have been offline for
several days]
Thank you very
Hi,
Thanks for your reply. However, this didn't work exactly as I needed
it to since the expression is dynamically built as a character vector
i.e. not executed as
e <- expression(Sepal.Width > 4)
but as
e <- expression("Sepal.Width > 4")
in which case subset() throws an error (must evaluat
Most internationalized programs (including R) respond to the LANGUAGE
environent variable: have you tried setting it to "en"?
We would need to know your OS to help more (it looks like it might be
Windows or possibly Mac OS: the terms used are not right for either).
On Tue, 12 Aug 2008, Sergey
Andreas Tille <[EMAIL PROTECTED]> wrote:
> what is the trick to get larger fonts for Graphs to make a good
> slide for presentations?
Generally I use something like
cex = 2
in the plot function, as well as
lwd = 3
--
Mike Prager, NOAA, Beaufort, NC
* Opinions expressed are personal and not
Hello R users,
I would like to use an integer and a date as attributes in sqlQuery,
and these arguments
are defined in my function.
I guess this is clearer comparing to my first post.
Here is my function:
GetReturn<-function(code,date)
{
db<-"C:/Test.mdb"
channel<-odbcConnectAccess(db)
ssql<
Running R version 2.6.1 under Gentoo Linux and using the fPortfolio
package, I am having trouble specifying a sector constraint. One of the
constraints to be imposed is that assets 1 and 2 together account for no
more than 13.63% of the portfolio. My attempt at coding that
constraint, "maxsumW
I have the same problem. I am using R on our bioinformatics server. From what
I have read jpeg() needs to use a widows graphics device like X11 to be able
to generate a jpeg file.
I am also very curious to see if anyone knows a solution, now I need to use
pdf() of ps() which is more time consuming
Hi guys,
I want to create variable on the fly: for example
for (i in 1:10) {
cat(paste("VAR",i,sep=""))
}
Will print VAR1, VAR2 etc up to VAR10. However I want to make these into
variables, and then give them a value, for example:
vect = c(10:20)
for (i in 1:10) {
cat(paste("VAR",i,sep
Hi all,
A two part quick question regarding gls
1) I'd like to pass a formula to gnls from a gam(mgcv package). Is there
a quick way to do this? I tried using
>gnls(gam$call$formula, data=df, correlation=AC1) but it keeps
outputting a message to the effect that I need x ~ y etc as the formula
I tried with Sys.setenv() in Eclipse environment in the following manner:
> Sys.getenv("LANGUAGE")
LANGUAGE
""
> Sys.setenv(LANGUAGE="en")
> Sys.getenv("LANGUAGE")
LANGUAGE
"en"
Once I've done this at the beginning of the session, warnings are in English.
When I exit Eclipse and then re
thanks petr,
i try it out and get back to you in case of problems.
cheers,
lukas
Von: Petr PIKAL [mailto:[EMAIL PROTECTED]
Gesendet: Di 12.08.2008 13:18
An: Indermaur Lukas
Cc: [EMAIL PROTECTED]
Betreff: Odp: [R] biplot_group_colours_and_point_symbols
Hi
[EMAI
I have half a solution:
bitmap(file="filename.jpg",type="jpeg"); works to generate a jpeg file.
However, I want my plots to be stored in single jpeg files and I can't get
this to work:
bitmap(file="Rplot%03d.jpg",onefile=FALSE,type="jpeg");
it overwrites my Rplot001.jpg file.
Any one additional
On 12 Aug 2008, at 17:00, Gabor Grothendieck wrote:
Executing strings is probably not a very
R-ish thing to do
I know - but as far as I can see there was no other way around in
this case...
but if that's your aim use eval and parse:
s <- "iris["iris$Sepal.Width > 4,]"
eval(parse(text = s
Sorry, this is probably quite an easy question, but I'm new to R and couldn't
find the answer anywhere.
I'm using geoR and geoRglm, but can't figure out how to get a border in my
geodata object. Does this need to be defined when I'm importing my data, or
afterwards, and how do I go about doing t
?assign , or consider a named vector/list.
jimineep wrote:
Hi guys,
I want to create variable on the fly: for example
for (i in 1:10) {
cat(paste("VAR",i,sep=""))
}
Will print VAR1, VAR2 etc up to VAR10. However I want to make these into
variables, and then give them a value, for example:
> vect = c(10:20)
> for (i in 1:10) {
+ assign(paste("VAR",i,sep=""), vect[i])
+ }
> VAR1
[1] 10
> VAR2
[1] 11
2008/8/12 jimineep <[EMAIL PROTECTED]>
>
> Hi guys,
>
> I want to create variable on the fly: for example
>
> for (i in 1:10) {
>cat(paste("VAR",i,sep=""))
> }
> Will print VAR1,
Dries Knapen-2 wrote:
>
> Hi,
>
> Thanks for your reply. However, this didn't work exactly as I needed
> it to since the expression is dynamically built as a character vector
>
> i.e. not executed as
> e <- expression(Sepal.Width > 4)
>
> but as
> e <- expression("Sepal.Width > 4")
>
> in
You should set environment variables in the environment, not from a
program. See rw-FAQ Q2.15 (and you may be able to set them in Eclipse
before it starts R).
On Tue, 12 Aug 2008, Sergey Goriatchev wrote:
I tried with Sys.setenv() in Eclipse environment in the following manner:
Sys.getenv(
The code I posted does work if you use it as I explained, not
as you changed it. Executing strings is probably not a very
R-ish thing to do but if that's your aim use eval and parse:
s <- "iris["iris$Sepal.Width > 4,]"
eval(parse(text = s))
On Tue, Aug 12, 2008 at 10:35 AM, Dries Knapen <[EMAIL
On Tue, 12 Aug 2008, Shubha Vishwanath Karanth wrote:
ThanksDidn't mean actually using '&', but not bigger than that too...
I usually see something done much better in R-help by a code which I don't know
at all. So, wanted to know if I am missing somewhere in using some codes which
I am n
Jamie Ledingham wrote:
becomes too much to handle by the time the loop reaches 170. Has anyone
had any experience of this problem before? Is it possible to 'wipe' R's
memory at the end of each loop - all results are plotted and saved or
written to text file at the end of each loop so this may b
On Tue, 12 Aug 2008, jimineep wrote:
Hi guys,
I want to create variable on the fly: for example
See
?assign
HTH,
Chuck
for (i in 1:10) {
cat(paste("VAR",i,sep=""))
}
Will print VAR1, VAR2 etc up to VAR10. However I want to make these into
variables, and then give them a val
> eval(parse(text = "iris[iris$Sepal.Width > 4,]"))
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
16 5.7 4.4 1.5 0.4 setosa
33 5.2 4.1 1.5 0.1 setosa
34 5.5 4.2 1.4 0.2 setosa
>
I had the same problem and my conclusion was also that the problem was that
our server was not running an X server.
I also found that bitmap(file="filename.jpg",type="jpeg"); works.. However
I want to store my plots in single jpeg files.. Unfortunately
bitmap(file="Rplot%03d.jpeg",onefile=FALSE,t
Hi all,
I got another VAR question here and really appreciate if somebody would help me
out :)
I have five time series, say A,B,C,D,E. My objective is to predict the series A
using the rest, that is, B, C, D and E. A Vector Autoregression Model should
work here. But first of all, I should select
jimineep hotmail.com> writes:
>
>
> Hi guys,
>
> I want to create variable on the fly: for example
>
> for (i in 1:10) {
> cat(paste("VAR",i,sep=""))
> }
> Will print VAR1, VAR2 etc up to VAR10. However I want to make these into
> variables, and then give them a value, for example:
>
> v
On Tue, 12 Aug 2008, Bachas wrote:
I have half a solution:
bitmap(file="filename.jpg",type="jpeg"); works to generate a jpeg file.
However, I want my plots to be stored in single jpeg files and I can't get
this to work:
bitmap(file="Rplot%03d.jpg",onefile=FALSE,type="jpeg");
it overwrites my R
imicola wrote:
Sorry, this is probably quite an easy question, but I'm new to R and couldn't
find the answer anywhere.
I'm using geoR and geoRglm, but can't figure out how to get a border in my
geodata object. Does this need to be defined when I'm importing my data, or
afterwards, and how do I
SQL has a between operator and via sqldf you can do this using
the built in data frame BOD as an example:
> library(sqldf)
> BOD
Time demand
118.3
22 10.3
33 19.0
44 16.0
55 15.6
67 19.8
> sqldf("select demand between 15 and 17 from BOD")
demand between 15
(sorry if this arrives multiple times, I sent it from the wrong email
address to the r-help the first time)
Thanks for both answers. I'll look into that.
I understand I can take do a qualitative evaluation of the fits using
visual tests, but a problem I have is that I'd like to quantify in how
ma
To add to Brian's points (which you should heed!) -- you **may** find it
also useful to look at (possibly smoothed) residuals to compare lack of fit
from your alternative models. If any shows up, some subject matter knowledge
might lead you to choose one or the other of your models -- or neither.
On Tue, 2008-08-12 at 14:11 +0100, Prof Brian Ripley wrote:
> On Tue, 12 Aug 2008, Michael R. Head wrote:
>
> > On Tue, 2008-08-12 at 07:15 -0400, Martin Henry H. Stevens wrote:
> >> Thanks Henrique. We need to use the tilde in formula statements as in,
> >> lm(y ~ x)
> >>
> >> Any ideas?
> >
> >
Hello,
I am trying to create a dotplot, and have run into a couple of snags
with the finishing details. The below code creates the dotplot, but I
cannot figure out how to: 1) change the color of the CI bars to black,
not blue, 2) delete the horizontal dotplot lines, and 3) arrange the
parame
On Tue, 12 Aug 2008, Michael R. Head wrote:
On Tue, 2008-08-12 at 14:11 +0100, Prof Brian Ripley wrote:
On Tue, 12 Aug 2008, Michael R. Head wrote:
On Tue, 2008-08-12 at 07:15 -0400, Martin Henry H. Stevens wrote:
Thanks Henrique. We need to use the tilde in formula statements as in,
lm(y ~
Dear List,
I have had problems inserting some (not all !) figures via odfWeave
(using print(someLatticeFunction)...). The figure was correctly
displayed in a R device window but the resulting ODF document displayed
the correct space for the figure and an empty frame with a "broken
image" icon and
Hi,
I read in csv files with the following code:
res <- vector(mode="list",length=3)
for(i in 1: length(res))
res[[i]]<-read.csv(file=paste("/Users/markaltaweel/Desktop/Output/HydroDataOutput",i,".csv",sep=""),header=T,sep=",")
This allows me to load the data into an array of length 3, with the
Dear List,
I have had problems inserting some (not all !) figures via odfWeave
(using print(someLatticeFunction)...). The figure was correctly
displayed in a R device window but the resulting ODF document displayed
the correct space for the figure and an empty frame with a "broken
image" icon and
1 - 100 of 164 matches
Mail list logo