On Fri, 29 Feb 2008, Tristan Casey wrote:
> Thanks again for your help.
>
> I am wanting my variable to store a character string exactly as the write.csv
> function would store as a csv text file;
>
> IE: My goal is to store a data frame of this construction;
>
> x1 x2
> 1 2
> 3 4
>
> as "X1","X
Can R handle graphic text ? I mean something like a pop-up message
window or a text widget ?
Thank you so much.
--
Maura E.M
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www
On Fri, 29 Feb 2008, Guohui Ding wrote:
> Dear friends,
>
> The user coordiante system in the R graphics is easy to understand as
> it simply corresponds to the range of values on the axes of the plot.
> However, sometimes, we want to kown the coordinates of a region in other
> system, e.g.,
Thanks again for your help.
I am wanting my variable to store a character string exactly as the write.csv
function would store as a csv text file;
IE: My goal is to store a data frame of this construction;
x1 x2
1 2
3 4
as "X1","X2",1,2,3,4 (the same format as CSV).
I am aware of the file ar
Chris,
I've learned those things by using R and trying to solve the problems I
encounter. The dummy is nothing more than a more elegant way of using
factor(1). The only connection with ggplot2, is that the plots will use
the name in the dataframe or the expression. And 'dummy' looks nicer
than 'fa
Ahh, my apologies I must admit that I don't fully understand textConnections
fully. I have been reading up on th RODBC package as an alternative to RMySQL.
With the file argument in write.csv, are you saying it is possible to write the
csv formated data directly to a cell in a MySQL database? I
Dear All,
I am working on a function that has an optional data argument, just like lm().
If the user sets the data argument equal to some dataframe, then the function
should look inside the dataframe for the variables given to other arguments,
otherwise the variables should be accessible from w
On Fri, 29 Feb 2008, Tristan Casey wrote:
> Ahh, my apologies I must admit that I don't fully understand
> textConnections fully. I have been reading up on th RODBC package as an
> alternative to RMySQL.
>
> With the file argument in write.csv, are you saying it is possible to
> write the csv f
Hi :
I have several puzzling questions about R package "e1071" , svm( )
function:
1: what is the model output about "model$coefs", is it (alfa(i)*y(i) )
and "model$rho" ? is it "- b"
2: if I want to know w , is it model$SV * model$coefs ?
3: if I just
Well that is certainly good news if write.csv output can be stored directly to
a character vector!
I have tried to specify a vector within the file="" argument for example;
write.csv(a,file="b") where b is a preexisting character vector
This does not work. Do I need to define b as something els
Dear Rglers,
when using a callback in rgl (Windows, if it matters)
http://finzi.psych.upenn.edu/R/library/rgl/html/callbacks.html
I would like to get the Asynchronous keyboard status (as least
Shift/Control, but preferably other key) to set markers in a plot.
getGraphicsEvents seems to be limit
One option is:
dosomething <- function(x, data, env=parent.frame()) {
if(!missing(data)) x <- data[,deparse(substitute(x))]
temp <- x^2 + 5
return(temp)
}
On 29/02/2008, Viechtbauer Wolfgang (STAT)
<[EMAIL PROTECTED]> wrote:
> Dear All,
>
> I am working on a function that ha
you are on Windows?
If yes look at:
?winDialog
?winDialogString
otherwise see tcltk package
On 29/02/2008, Maura E Monville <[EMAIL PROTECTED]> wrote:
> Can R handle graphic text ? I mean something like a pop-up message
> window or a text widget ?
>
> Thank you so much.
>
>
> --
> Maura E.
library(lattice)
levelplot(r, colorkey=list(col=gray((0:32)/32)),
col.regions=(col=gray((0:32)/32)))
On 29/02/2008, Megh Dal <[EMAIL PROTECTED]> wrote:
> Hi Jim, i think you could not get my point. I did not want to put red-blue
> color there. I want to put a pallet which will describe the values
Try this:
sapply(1:length(g.tablist),
function(x)write.table(g.tablist[[x]],
file=sprintf('Table%d.txt', x), quote=FALSE))
On 29/02/2008, Lauri Nikkinen <[EMAIL PROTECTED]> wrote:
> R users,
>
> My intention is to take factors out of DF, create list of tables and
> export these tables
Dieter Menne wrote:
> Dear Rglers,
>
> when using a callback in rgl (Windows, if it matters)
>
> http://finzi.psych.upenn.edu/R/library/rgl/html/callbacks.html
>
> I would like to get the Asynchronous keyboard status (as least
> Shift/Control, but preferably other key) to set markers in a plot.
>
>
To read in a few columns you can can also use something like,
reduced.data<-do.call("cbind",scan(file='location/name',what=list(NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL,0,NULL,NULL,NULL),flush=TRUE))
where only columns 8 and 10 where saved in your object.
Rubén
__
Hi there,
I was wondering whether there are flexible packages available with which you
can create user interfaces? (I've read about "gWidgets"!?)
For example in Matlab you can even create stand alone applications. Is it also
possible for R in the same extend? Of course it should be platform inde
Dear all,
I quickly checked on the internet and nothing relevant came up, so, I
hope to find the answer to a question here. I'd pleased to be
redirected towards relevant pieces of information on the internet, if I
merely missed something obvious.
Actually, I've got two somewhat related questions
On 2/28/08, Gabor Grothendieck <[EMAIL PROTECTED]> wrote:
> The sqldf package can read a subset of rows and columns (actually any
> sql operation)
> from a file larger than R can otherwise handle. It will automatically
> set up a temporary
> SQLite database for you, load the file into the dat
On Fri, Feb 29, 2008 at 8:27 AM, Liviu Andronic <[EMAIL PROTECTED]> wrote:
> On 2/28/08, Gabor Grothendieck <[EMAIL PROTECTED]> wrote:
> > The sqldf package can read a subset of rows and columns (actually any
> > sql operation)
> > from a file larger than R can otherwise handle. It will automat
Dear R-users,
I am sorry if I ask for something that has been asked
before, however, I still could not solve my little
problem by consulting the previous thread on this
topic:
I would like to replace several values in a data
frame, such as in:
colorful
subject response
1 meblack
2
On Fri, Feb 29, 2008 at 4:47 AM, Nauta, A.L. <[EMAIL PROTECTED]> wrote:
> Thank you for your reply,
> is your answer (that the approach does not depend on balance in the data)
> only valid for one-way anova, or also for two-way or more-way anova?
Any kind.
You should be aware that for unbalanced
See ?recode in the car package.
On Fri, Feb 29, 2008 at 8:50 AM, Silvia Lipski <[EMAIL PROTECTED]> wrote:
> Dear R-users,
>
> I am sorry if I ask for something that has been asked
> before, however, I still could not solve my little
> problem by consulting the previous thread on this
> topic:
>
>
hi members,
i try to load the package genefilter but i get always this error message:
_R code:_
>library(genefilter)
Error in dyn.load(file, ...) :
unable to load shared library
'/usr/local/lib64/R/library/RSQLite/libs/RSQLite.so':
/usr/local/lib64/R/library/RSQLite/libs/RSQLite.so: undefin
Hi Ivan,
>> It appears that xYplot, unlike "standard" xyplot (or coplot to that
>> matter)
>> does not accept factors as x variable in formula.
To add to what you have said. It may not be too well documented in ?xYplot,
but xYplot() is really designed to do a number of very useful things with
t
For plot():
plot(x,y, type = "n")
text(x,y, lab= junk.frm$ID)
This accomplishes the goal of using subject IDs as plot symbols, but I can't
seem to get the same result below w/ xyplot(). Is there something different
I have to do for xyplot()?
xyplot(y ~ x, type = "n")
text(x,y , lab=junk.frm$ID
A revised version of the MiscPsycho package has been uploaded to CRAN.
The fixes include:
1) A bug found in the class.acc() function that resulted in overflow
errors when computing probabilities associated with polytomously scored
items has been resolved. The function now integrates over the poste
Dear Sir/Madam,
I got some problem about using R.
I am a student, and need to use R a lot. But sometimes when I am working in
computer lab, we can not install some particular pacakges by ourselves because
of the previliges.
Can the folder of Librabry of R, move to, for instance the personal folde
Hello,
I'm using the R package called mvpart, which is about the multivariate
regression trees.
The function I wrote is:
mrt1<- mvpart(coefmat~sChip+sScreen+sMem,data=mixdata, xv="pick",
plot.add=TRUE,uniform=TRUE,which=4,all=TRUE,xadj=2,yadj=2,rsq=TRUE,big.pts=TRUE,wgt.ave.pca=TRUE,legend=TRUE,b
On Fri, 2008-02-29 at 15:01 +, Luis Ridao Cruz wrote:
> R-help,
>
> I have a data frame in which I compute maximum by rows
> and I wish to find out the column name at which this maximun occurs.
>
> Does anyone know how to do it?
>
> Thanks in advance
Do you mean compute the maximum value in
hi members,
i try to load the package genefilter but i get always this error message:
_R code:_
>library(genefilter)
Error in dyn.load(file, ...) :
unable to load shared library
'/usr/local/lib64/R/library/RSQLite/libs/RSQLite.so':
/usr/local/lib64/R/library/RSQLite/libs/RSQLite.so: undefin
Try this:
colorful$response <- factor(colorful$response)
levels(colorful$response)[levels(colorful$response) %in% ToBeReplaced]
<- Replacement
On 29/02/2008, Silvia Lipski <[EMAIL PROTECTED]> wrote:
> Dear R-users,
>
> I am sorry if I ask for something that has been asked
> before, however, I s
The following worked for me (put together after reading ?
textConnection). Put simply, all read/write command work with
"connections", which are if you like "devices that know how to read
or write things". textConnection creates such a device that writes
(or reads if we used open="r") to/fro
Have a look at the documentation of ?.libPaths, it seems to me that
setting the variable R_LIBS_USER is what you would want to do.
Haris Skiadas
Department of Mathematics and Computer Science
Hanover College
On Feb 29, 2008, at 10:14 AM, Daoping Mo wrote:
> Dear Sir/Madam,
>
> I got some probl
Information about *graphical* user interface efforts for R, assuming
that's what you meant, can be found here:
http://www.sciviews.org/_rgui/
-Don
At 1:45 PM +0100 2/29/08, Antje wrote:
>Hi there,
>
>I was wondering whether there are flexible packages available with which you
>can create user
Tristan Casey wrote on 02/29/2008 03:37 AM:
> Well that is certainly good news if write.csv output can be stored directly
> to a character vector!
>
> I have tried to specify a vector within the file="" argument for example;
>
> write.csv(a,file="b") where b is a preexisting character vector
>
Dear R user:
I am using R2WinBUGs to call WinBUGS from R. But I have some problems in
using either the option bugs.seed and summary.only in the function bugs.
Here are the programs and error messages. It appears that if I don't use
either option, the program runs fine. I am using R2.5.1 and Win
Gavin Simpson schrieb:
> Paul,
>
> Do you have the RSQLite package installed?
>
> In a clean R, what does
>
> require(RSQLite)
>
> return?
>
> If you don't have it installed, then install the package:
>
> install.package("RSQLite", dep = TRUE)
>
> If that proceeds correctly - you may need external
Hi Maura,
I'm afraid that your message below only came to me, and wasn't copied to R-help.
I'm useless at graphics in R, but I'd recommend posting exactly what
R-code that your writing, this will show what plotting commands your
using and the syntax, and will allow others to provide insightful
co
Paul,
Do you have the RSQLite package installed?
In a clean R, what does
require(RSQLite)
return?
If you don't have it installed, then install the package:
install.package("RSQLite", dep = TRUE)
If that proceeds correctly - you may need external libraries of headers
for RSQLite to compile ag
hi members,
is it possible to set the work directory ( e.g. via setwd() ) on a other
computer than R has been started?
thanks
paul
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http:
Look at the cnvrt.coords function in the TeachingDemos package.
You should be able to use that function to transform from user
coordinates to device coordinates (where 0 is left/bottom and 1 is
right/top), then multiply the device coordinates by the resolution to
get the pixel numbers.
Hope thi
R-help,
I have a data frame in which I compute maximum by rows
and I wish to find out the column name at which this maximun occurs.
Does anyone know how to do it?
Thanks in advance
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/list
Corrected:
dir.create(file.path(path.expand('~'), 'library'))
myLibrary <- file.path(path.expand('~'), 'library')
install.packages('package', lib = myLibrary)
library(package, lib = myLibrary)
#or
.libPaths(c(.libPaths(), myLibrary))
library(package)
On 29/02/2008, Henrique Dallazuanna <[EMAIL P
On 2/29/2008 7:16 AM, Duncan Murdoch wrote:
> Dieter Menne wrote:
>> Dear Rglers,
>>
>> when using a callback in rgl (Windows, if it matters)
>>
>> http://finzi.psych.upenn.edu/R/library/rgl/html/callbacks.html
>>
>> I would like to get the Asynchronous keyboard status (as least
>> Shift/Control, b
Hi Michael,
Yes, this is what I'm suggesting. Bear in mind, your model estimation
process should have also resulted in volatility estimates for t-1, t-2,
etc.
Your simulation will require one or more of these terms as input (in
addition to the random innovations) since your stochastic volatility
I am trying to optimize in situations such as the following:
Given 100 ability test items with such known item values as (1)
difficulty, (2) correlation with criterion, (3) position in subject
matter taxonomy, (4) illustrated/nonillustrated, (5) abstraction level,
and (6) length, I seek to make
Several people have given great advice on how to successfully use X11 on
Mac to so we can use the dvi previewer to view latex() output from
Hmisc. Now after a version upgrade of X11 and X11sdk we are getting
lots of crashes. I noticed a Mac dvi previewer with an executable
stored as /Applicat
Frank,
You don't need to use X11 for TeXShop; I use Lyx for the Mac as well — I
don't use X11 or xdvi for either…
Regards,
Tom
Frank E Harrell Jr wrote:
> Several people have given great advice on how to successfully use X11 on
> Mac to so we can use the dvi previewer to view latex() output f
See this:
myLibrary <- file.path(path.expand('~'), 'library')
install.packages('package', lib = myLibrary)
library(package, lib = myLibrary)
#or
.libPaths(c(.libPaths(), myLibrary))
library(package)
On 29/02/2008, Daoping Mo <[EMAIL PROTECTED]> wrote:
> Dear Sir/Madam,
>
> I got some problem ab
I can do it under Windows for network mounted files that are on some
other system: e.g.,
setwd("p:/APPS")
On 2/29/08, Paul Hammer <[EMAIL PROTECTED]> wrote:
> hi members,
>
> is it possible to set the work directory ( e.g. via setwd() ) on a other
> computer than R has been started?
>
> thanks
>
Does anyone know how to get a vector of column sum from a data frame?
You can use colSums(), but this gives you a object of type "numeric"
with the column labels in the first row, and the sums in the second
row. I just want a vector of the sums, and I can't figure out a way
to index the "
I'm looking for an answer to a similar question:
years <- as.factor(sort(rep(1987:2006,20)))
values <- rnorm(1:400,0,10)
plot(years,values)
results in 20 boxplots with x axis labels unreadable because there are
too many of them. How do I reduce the number of x axis labels?
Regards,
Cornelis
2
Jason -
colSums does return an object of class "numeric", which is certainly a
vector. The vector it returns happens to have names. If you want an
unnamed vector of the sums, just set the names attribute to NULL. This
will remove the names. However, you say you can't figure out how to
index
as.vector(col.Sums())
Ben
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Jason Horn
Sent: Friday, February 29, 2008 11:03 AM
To: [EMAIL PROTECTED]
Subject: [PS] [R] Column sums from a data frame (without the headers)
Does anyone know how to get a vecto
Well, actually, in Splus I had this problem. In R this problem seems
to be solved. Does anyone have an idea how to solve this problem in
Splus?
Cornelis
2008/2/29, Cornelis de Gier <[EMAIL PROTECTED]>:
> I'm looking for an answer to a similar question:
>
> years <- as.factor(sort(rep(1987:2006,2
On Fri, 2008-02-29 at 12:02 -0500, Jason Horn wrote:
> Does anyone know how to get a vector of column sum from a data frame?
> You can use colSums(), but this gives you a object of type "numeric"
> with the column labels in the first row, and the sums in the second
> row. I just want a vect
On Fri, Feb 29, 2008 at 10:32 AM, Nauta, A.L. <[EMAIL PROTECTED]> wrote:
> I tried a 6-way anova, and indeed found out that changing the order of
> factors influences the SS, F-ratio's and p-values. So what should I do if I
> want to know which factor most strongly rejects H0? (H0 is the hypothese
colSums gives you exactly what you want, but the vector is *named*.
You can use it like a not-named numeric vector, without much trouble.
If you still want to get rid of the names see ?unname
G.
On Fri, Feb 29, 2008 at 12:02:46PM -0500, Jason Horn wrote:
> Does anyone know how to get a vector of
Romain Francois schrieb:
> Hi,
>
> This seems to work for me by either mapping a network drive on windows
> or by using sshfs to mount a remote filesystem on my linux machine. I
> suppose you would have some sort of side effect in terms of time.
>
> Cheers,
>
> Romain
>
> Paul Hammer wrote:
>> hi
Hi folks,
Is there an implementation of generalized method of moments in R? I did do a
help.search but found no hit. Site search found this gmm estimator function in
the package sde but not sure what it is.
Having browsed the codes in Finmetrics, I naively thought it won't be too hard
to imple
On Fri, 2008-02-29 at 18:12 +0100, Cornelis de Gier wrote:
> I'm looking for an answer to a similar question:
>
> years <- as.factor(sort(rep(1987:2006,20)))
> values <- rnorm(1:400,0,10)
> plot(years,values)
>
> results in 20 boxplots with x axis labels unreadable because there are
> too many of
I will try. It looks like the new-line sequence is to be enclosed in
single quotes ''
because the whole text is inside double quotes "".
Still it would be nice to have the possibility to pop up a text
widget. I know R is a serious statistical tool. But when you have to
present your project then pre
On 29 Feb 2008, Frank E. Harrell, Jr. wrote:
> Several people have given great advice on how to successfully use X11 on
> Mac to so we can use the dvi previewer to view latex() output from
> Hmisc. Now after a version upgrade of X11 and X11sdk we are getting
> lots of crashes. I noticed a Mac
How do i for have a time of experiment? Have a package for this? Or
function? In my case the time of experiment is learning machining (svm).
Tanks :)
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch
On 1/7/08, Jeff D. Hamann <[EMAIL PROTECTED]> wrote:
> I apologize if this is somewhere in the archives, but I can't seem to find
> a solution to this question.
>
> I've been trying to plot a bwplot:
>
> print(
> bwplot( n.pareto ~ as.factor(gen) | mut.rate * n.pop,
> data=p6
Thanks, Greg. Yes, I'd store the compressed stuff as a raw data type.
Best,
R.
On Thu, Feb 28, 2008 at 11:54 PM, Gregory Warnes <[EMAIL PROTECTED]> wrote:
>
> You might look at storing the data using R's "raw" data type...
>
> -G
>
>
>
>
> On Feb 28, 2008, at 5:38PM , Ramon Diaz-Uriarte wrote
On Feb 29, 2008, at 12:38 PM, Michael wrote:
> On 29 Feb 2008, Frank E. Harrell, Jr. wrote:
>
>> Several people have given great advice on how to successfully use
>> X11 on
>> Mac to so we can use the dvi previewer to view latex() output from
>> Hmisc. Now after a version upgrade of X11 and X11
I need in machine clock! Not in seconds.
On Fri, Feb 29, 2008 at 2:50 PM, Luís Paulo F. Garcia <[EMAIL PROTECTED]>
wrote:
> How do i for have a time of experiment? Have a package for this? Or
> function? In my case the time of experiment is learning machining (svm).
>
> Tanks :)
>
[[alte
He, Yulei wrote:
> Dear R user:
>
>
>
> I am using R2WinBUGs to call WinBUGS from R. But I have some problems in
> using either the option bugs.seed and summary.only in the function bugs.
> Here are the programs and error messages. It appears that if I don't use
> either option, the program r
Hi,
I am trying to find a way to automate production of page numbers in plots
produced using the lattice package. To do this, I started playing around
with setHook which works fine with vanilla plot, but the hook 'plot.new'
doesn't appear to be relevant to the lattice package. I was wondering if
Dear All,
I think I am confused about how I'd be able to use zlib starting with
R 2.7.0. I just downloaded the latest development version, built it,
etc, but I am not able to find the zlib.h that, I believe, R should
place somewhere under "where/you/want/R/to/go" (from
--prefix=/where/you/want/R
See share/perl/massage-examples.pl
Hint: lattice is a (very sophisticated) wrapper for grid, and it is
grid.newpage() that has the hook.
Hint 2: look at the version in the R-devel sources,
https://svn.r-project.org/R/trunk/share/perl/massage-Examples.pl
for use with lattice.
On Fri, 29 Feb 20
Dear R community,
I wish to print tables into a pdf file. How can this be done, adding
headers and several tables to the same file?
Thanking you for your attention,
Georg.
*
Georg Ehret
Johns Hopkins
Baltimore - US
[[alternative HTML version deleted]]
_
On Fri, 29 Feb 2008, Ramon Diaz-Uriarte wrote:
> Dear All,
>
> I think I am confused about how I'd be able to use zlib starting with
> R 2.7.0. I just downloaded the latest development version, built it,
> etc, but I am not able to find the zlib.h that, I believe, R should
> place somewhere unde
Hi the list
I define a class A (slot a and b), a class C (slot c and d) and a class
E that inherit from A and B.
I define print(A) and print(B). For print(C), I would like to use both
of them, but I do not see how...
Thanks for your help...
Christophe
-
There are a few different ways that this can be accomplished.
The method I would suggest is to use one of the variants of Sweave.
You can either use the original Sweave (?Sweave) or the odfWeave
package.
Using the original Sweave you would create a template file that combines
LaTeX commands (hea
Hi Georg,
see textplot in the gplots package
another way is thru sweave and latex, pdf -> latex
Bart
Georg Ehret wrote:
>
> Dear R community,
>I wish to print tables into a pdf file. How can this be done,
> adding
> headers and several tables to the same file?
>
> Thanking you for
A simple RSiteSearch:
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/63840.html
Bart
Luís Paulo F. Garcia wrote:
>
> How do i for have a time of experiment? Have a package for this? Or
> function? In my case the time of experiment is learning machining (svm).
>
> Tanks :)
>
> [[alter
The generic way to open an arbitrary file with an arbitrary
application in OS X at the command line in a shell window is
open -a application_name file_name
quoted if there are embedded spaces. One doesn't generally have to
give the full path to the application.
Digging into help.start() mi
Does anyone know how to get a vector of column sum from a data frame?
You can use colSums(), but this gives you a object of type "numeric"
with the column labels in the first row, and the sums in the second
row. I just want a vector of the sums, and I can't figure out a way
to index the "
Hi there,
I'm brand new to R, so let me know if this question is not
appropriate for this list. I've been reading through the
documentation and have tried a number of things, but am pretty much
stuck so far. Here's the session info:
> sessionInfo()
R version 2.6.2 (2008-02-08)
i386-apple
Hi Maura,
Compound quotes can become an absolute nightmare (in any language).
R already has Tcl/TK packages, check out the following from CRAN...
ade4TKGUI
gWidgetstcltk
plotAndPlayGTK *
RGtk2
* possibly what your after?
Also you might find some of the packages listed at the Graphics Task
View
Dear R Community,
I first apoligize to ask statistical questions of general domain,
probably beyond the mere use of R. I want to analyze the following type
of data with R . Total annual fisheries landings have been reported
during 1950-2007 from a given fishery area. I am dealing with annual
fishe
Dear readers,
I would like to use GNUplot for the plots, but I can't find any
information on how to do that.
Have anyone tried that? =)
Hugs,
Louise
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read
On Friday 29 February 2008 09:37:26 pm Louise Hoffman wrote:
LH> Dear readers,
LH>
LH> I would like to use GNUplot for the plots, but I can't find any
LH> information on how to do that.
LH>
LH> Have anyone tried that? =)
LH>
LH> Hugs,
LH> Louise
LH>
Try
http://gnuplot.info/
there is plenty
Dear list,
I'm trying to write my first looping function in R. After many hours of
searching help files and previous posts, I'm at wits end. Please forgive my
programming ignorance...any help is greatly appreciated.
I need to sort through a vector (x) and identify the point at which 2
success
Does this give the answer that you want?
> x <- c(5,5,7,6,5,4,3)
> result <- NULL
> for (i in 1:(length(x) - 2)){
+ if ((x[i + 1] < x[i]) && (x[i + 2] < x[i])) result <- c(result, i)
+ }
> result
[1] 3 4 5
>
On 2/29/08, zack holden <[EMAIL PROTECTED]> wrote:
>
> Dear list,
> I'm trying to w
Hello,
I'm using the R package called mvpart, which is about the multivariate
regression trees.
The function I wrote is:
mrt1<- mvpart(coefmat~sChip+sScreen+sMem,data=mixdata, xv="pick",
plot.add=TRUE,uniform=TRUE,which=4,all=TRUE,xadj=2,yadj=2,rsq=TRUE,big.pts=TRUE,wgt.ave.pca=TRUE,legend=TRUE,ba
Still about the mvpart.
Is there any way I can control for the number of elements in each node
in the function mvpart? Specifically, how can I ask partition to
ignore node with elements less than 10?
Thanks!
-Shu
__
R-help@r-project.org mailing list
htt
Dear Prof. Ripley,
Thanks for your reply. I think I understand now.
Best,
R.
On Fri, Feb 29, 2008 at 7:36 PM, Prof Brian Ripley
<[EMAIL PROTECTED]> wrote:
> On Fri, 29 Feb 2008, Ramon Diaz-Uriarte wrote:
>
> > Dear All,
> >
>
> > I think I am confused about how I'd be able to use zlib startin
[snip]
> Seriously. Be specific if you have a problem. (read the posting guide). R can
> also plot. If you don't like R's plots (which I could not understand) you can
> export data and import them to gnuplot. So what?
Okay, my post was not very good.
The reason (I think) I need GNUplot, is tha
On Fri, 2008-02-29 at 16:46 -0500, shu zhang wrote:
> Hello,
> I'm using the R package called mvpart, which is about the multivariate
> regression trees.
>
> The function I wrote is:
> mrt1<- mvpart(coefmat~sChip+sScreen+sMem,data=mixdata, xv="pick",
> plot.add=TRUE,uniform=TRUE,which=4,all=TRUE,x
On Fri, 2008-02-29 at 16:48 -0500, shu zhang wrote:
> Still about the mvpart.
> Is there any way I can control for the number of elements in each node
> in the function mvpart? Specifically, how can I ask partition to
> ignore node with elements less than 10?
mvpart is just a wrapper to (a modifie
I believe that R can export all formats that GNUplot can produce,
so i don't really see why you want to use GNUplot if you don't know it.
If you still want to then read ?write.table, that can export your data
into a spreadsheet-like ascii format which can be used from GNUplot
easily.
Btw, compar
On 29 Feb 2008, Charilaos Skiadas wrote:
> On Feb 29, 2008, at 12:38 PM, Michael wrote:
> > On 29 Feb 2008, Frank E. Harrell, Jr. wrote:
> >
> >> Several people have given great advice on how to successfully use
> >> X11 on
> >> Mac to so we can use the dvi previewer to view latex() output from
On 29 Feb 2008, Don MacQueen wrote:
> The generic way to open an arbitrary file with an arbitrary
> application in OS X at the command line in a shell window is
>
> open -a application_name file_name
But there is no native Mac program to open a dvi file.
Michael
__
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html and provide commented,
minimal, self-contained, reproducible code.
Here is an example; I am not sure what problem you are having with
'indexing' since you did not show an example.
> x <- data.frame(a=1:10, b=21:30, c=41:
I have the following code:
subsetTimeDataPlot <- boxplot(subsetTimeData$time ~
subsetTimeData$build, horizontal=True, col="lightblue", ...)
The 'names' component consists of strings that can be up to 20-30
characters long.
How would I go about drawing the names vertically (not the boxplot) or
1 - 100 of 117 matches
Mail list logo