On Tue, Jul 6, 2010 at 12:41 PM, Duncan Murdoch
murdoch.dun...@gmail.com wrote:
On 06/07/2010 10:54 AM, Paul Johnson wrote:
Here's another example of my plotmath whipping boy, the Normal
distribution.
You want as.expression(b1), not expression(b1). The latter means the
expression
On Tue, 6 Jul 2010, Michael Friendly wrote:
Michael Kubovy wrote:
Suppose we start with
data(Titanic)
mosaic(Titanic, shade = TRUE)
How do I combine the dashed box contours of shading_Friendly to indicate
negative residuals, with three levels of gray: dark for abs(Pearson Resid)
4,
Hello did anyone ever use C# in connection with R ?
i am looking into R extension but would like to use C# instead of C or C++
i wonder whether anyone has experience in particular with Mono for doing so
many thanks in advance bernd
__
On 07/07/10 06:03, Paul Johnson wrote:
[...]
Hi, Duncan and David
Thanks for looking. I suspect from the comment you did not run the
code. The expression examples I give do work fine already. But I
have to explicitly put in values like 1.96 to make them work. I'm
trying to avid that
A standalone example is always appreciated (cf. the posting guide) but
try and see if help(gray.colors, package=grDevices) is the sort of
thing you are looking for.
Hope this helps
Allan
On 06/07/10 23:30, Marlin Keith Cox wrote:
I need grayscale formatting for a wireframe.
The only
Ooops, I didn't convert this one to text right for the list.
b1- substitute( mu - d*sigma, list(d=*-round(dividers[1],2))* )
should be
b1- substitute( mu - d*sigma, list(d=-round(dividers[1],2)) )
and similarly for
labels=*as.expression(c(b1,b2,b3,b4,b5))*, padj=-1)
read
On Tue, 6 Jul 2010, Paras Sharma wrote:
Hello,
When using the ctree function, from library (party) what is the syntax to
order the Variables in the nodes in a specific way?
For example, how would I specify to make a binary come first, then a
continuous variable?
Not sure what you mean here.
Hello David,
Thanks to your posting I started looking at the function in the arm package.
It appears this function is quite mature, and offers (for example) the
ability to easily overlap coefficients from several models.
I updated the post I published on the subject, so at the end of it I give
Hi useRs,
Is it possible to get MORLET wavelet in R
Thanks
nuncio
--
Nuncio.M
Research Scientist
National Center for Antarctic and Ocean research
Head land Sada
Vasco da Gamma
Goa-403804
[[alternative HTML version deleted]]
__
There is a mixed effects e-mail list you might want to join for more in depth
discussion of these topics - you can subscribe here
https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models.
In general the format for crossed effects would be
lmer(y~f1+f2+(1|r1)+(1|r2)) where f1, f2 are fixed
I need to calculate Q-correlations, in order to quantify differences
between the profiles of my tested persons. Has anybody any experience
doing that? Which command/package targets Q-correlations?
Timo
__
R-help@r-project.org mailing list
Thanks Tal. Nice summary on the web page. I think the last example
would be even better if it was a stand-alone piece of code (i.e.: with
data) that we could run. For example
library(arm)
data(Mroz, package = car)
M1- glm(lfp ~ ., data = Mroz, family = binomial)
M2- bayesglm(lfp ~ .,
Try
RSiteSearch(MORLET)
before you post.
Allan
On 07/07/10 09:38, nuncio m wrote:
Hi useRs,
Is it possible to get MORLET wavelet in R
Thanks
nuncio
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
On Wed, 7 Jul 2010, Tal Galili wrote:
Hello David,
Thanks to your posting I started looking at the function in the arm package.
It appears this function is quite mature, and offers (for example) the
ability to easily overlap coefficients from several models.
Re: more mature. arm's coefplot()
I would even look at the packages page... There are plenty of them.
Please, at least, do minimal research before clogging up this list.
Also, please read the posting guide that is appended to every mail to
this list.
On Wed, Jul 7, 2010 at 4:03 AM, Allan Engelhardt all...@cybaea.com wrote:
Try
Hi Achim and Allan,
I updated the post with Allan's example (thanks Allan).
Achim, you wrote:
Finally, the Poisson model in comparison with the binomial models does not
make much sense, I guess.
I agree. I wanted something to showcase the function on 3 models (with the
same predictors), and
On Wed, 7 Jul 2010, Tal Galili wrote:
Hi Achim and Allan,I updated the post with Allan's example (thanks Allan).
Thanks!
Achim, you wrote:
Finally, the Poisson model in comparison with the binomial models does not
make much sense, I guess.
I agree. I wanted something to showcase the
I Achim,
I retained the example (so to illustrate the use of the function) - but
pointed out to it's nonsensical nature.
Credit was mentioned to both you and Allan.
Thanks,
Tal
Contact
Details:---
Contact me:
On 07/07/2010 1:03 AM, Paul Johnson wrote:
On Tue, Jul 6, 2010 at 12:41 PM, Duncan Murdoch
murdoch.dun...@gmail.com wrote:
On 06/07/2010 10:54 AM, Paul Johnson wrote:
Here's another example of my plotmath whipping boy, the Normal
distribution.
You want as.expression(b1), not
Hello,
I am using Rcommander to generate codes and when I go
through it to load my excel file, it works. But every time I
re-open my script and try to load it directly with the
script Rcommander generated, I get an error message.
Basically the code works one time and then no more.
Here's the
On 07/07/2010 02:39 AM, beloitstudent wrote:
Thanks for the advice! It has worked for the most part. However, I am
still coming up with an error message when placing my break line in the axis
that I'm not sure what it means. If you could help me out, that would be
fantastic...otherwise I
Hi:
I'd suggest looking at the following plot (data in original post, copied
below):
library(lattice)
stripplot(Intensity ~ Group, data = zzzanova)
Some things stand out in this plot that merit attention.
As Josh Wiley pointed out in an earlier reply, the concentration of -4.60517
values
in
by grouped data are you saying that you have counts of outcomes and counts
of trials?
That is how I interpret the glogit in stata. If that is the case you can
put your data into glm()
like this
fit-glm(nevents~xvars, weights=ntrials, family=binomial, data=yourdataset)
will fit the binomial
Hi all,
I'm running R 2.10.1 on Windows XP and I'd like to read files from a ftp
site.
Does anybody know how to do ?
Thanks
Benoit
--
Benoit Wastine
Laboratoire des Sciences du Climat et de l’Environnement (LSCE/IPSL)
CEA-CNRS-UVSQ
CE Saclay
Orme des merisiers
Bât 703 - Pte 13A
91191 Gif sur
Hi
r-help-boun...@r-project.org napsal dne 01.07.2010 17:40:22:
Hi, I run into problem when writing a syntax, I don't know syntax that
will
return true or false if an integer is odd or even.
fff - function(x) as.logical(x%%2)
Regards
Petr
Thanks
OYEYEMI, Gafar Matanmi
Department
Which package are you using?
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
On Behalf Of Parminder Mankoo
Sent: Tuesday, July 06, 2010 10:50 PM
To: r-help@r-project.org
Subject: [R] numerical derivative R help
Importance: Low
I fit my CDF to
Dear all, I have a date related question. Suppose I have a character string
March-2009, how I can convert it to a valid date object like
as.yearmon(2009-01-03) in the zoo package? Is there any possibility there?
Ans secondly is there any R function which will give the names of of all
months as
?strptime
‘%B’ Full month name in the current locale. (Also matches
abbreviated name on input.)
On Wed, Jul 7, 2010 at 8:40 AM, Christofer Bogaso
bogaso.christo...@gmail.com wrote:
Dear all, I have a date related question. Suppose I have a character string
March-2009, how I can
On Jul 7, 2010, at 7:40 AM, Christofer Bogaso wrote:
Dear all, I have a date related question. Suppose I have a character string
March-2009, how I can convert it to a valid date object like
as.yearmon(2009-01-03) in the zoo package? Is there any possibility there?
Ans secondly is there any
?download.file
Uwe Ligges
On 07.07.2010 14:05, Benoit Wastine wrote:
Hi all,
I'm running R 2.10.1 on Windows XP and I'd like to read files from a ftp
site.
Does anybody know how to do ?
Thanks
Benoit
__
R-help@r-project.org mailing list
On Wed, Jul 7, 2010 at 8:40 AM, Christofer Bogaso
bogaso.christo...@gmail.com wrote:
Dear all, I have a date related question. Suppose I have a character string
March-2009, how I can convert it to a valid date object like
as.yearmon(2009-01-03) in the zoo package? Is there any possibility
I have a text file log2.log encoded Ansi in Windows.
When I execute:
out - read.zoo(readLines(con - file(log2.log,
encoding=UCS-2LE)),FUN = as.chron)
have errors:
Error en file(file, rt) : no se puede abrir la conexión
Además: Mensajes de aviso perdidos
1: In file(file, rt) :
sólo fue usado
Hello,
I am creating a package and in my vignette I would like to load a text
file from the data folder of the package. Currently, I am doing the
following:
filepath - paste(.libPaths(), pkgname, data, sample.txt, sep = /)
file(filepath)
Is there a better way of doing this?
Thanks,
Andrew
I am looking for a way to trim leading and trailing spaces in a character
string in R. For example:
this is random text
should become:
this is random text.
I have a short function to perform this task as follows:
trim - function(str){
str - sub(^ +, , str)
str -
Try this:
gsub(^\\s+|\\s+$, ,this is random text)
On Wed, Jul 7, 2010 at 10:23 AM, Andrew Leeser aml05willi...@yahoo.comwrote:
I am looking for a way to trim leading and trailing spaces in a character
string in R. For example:
this is random text
should
See
?system.file
On Wed, Jul 7, 2010 at 10:20 AM, Andrew Liu andrew.t@williams.eduwrote:
Hello,
I am creating a package and in my vignette I would like to load a text file
from the data folder of the package. Currently, I am doing the following:
filepath - paste(.libPaths(), pkgname,
You've tried this?
out - read.zoo(log2.log, encoding=UCS-2LE, FUN = as.chron)
On Wed, Jul 7, 2010 at 10:16 AM, Sebastian Kruk residuo.so...@gmail.comwrote:
I have a text file log2.log encoded Ansi in Windows.
When I execute:
out - read.zoo(readLines(con - file(log2.log,
On Wed, Jul 7, 2010 at 9:16 AM, Sebastian Kruk residuo.so...@gmail.com wrote:
I have a text file log2.log encoded Ansi in Windows.
When I execute:
out - read.zoo(readLines(con - file(log2.log,
encoding=UCS-2LE)),FUN = as.chron)
have errors:
Error en file(file, rt) : no se puede abrir la
If I edit(out):
structure(logical(0), .Dim = c(707L, 0L), .Dimnames = list(NULL,
NULL), index = structure(1:707, format = m/d/y, origin = structure(c(1,
1, 1970), .Names = c(month, day, year)), class = c(dates,
times)), class = zoo)
I tried:
z - read.zoo(textConnection(L), index = 1:2,FUN =
On Jul 7, 2010, at 9:23 AM, Andrew Leeser wrote:
I am looking for a way to trim leading and trailing spaces in a
character
string in R. For example:
this is random text
should become:
this is random text.
I have a short function to perform this task as follows:
trim -
I tried:
L - readLines(con - file(log2.log, encoding=UCS-2LE)
z - read.zoo(textConnection(L), index = 1:2,FUN = function(x)
paste(x[,1], x[,2]))
Error:
Error en x[, 1] : número incorreto de dimensiones
__
R-help@r-project.org mailing list
On Wed, Jul 7, 2010 at 9:43 AM, Sebastian Kruk residuo.so...@gmail.com wrote:
I tried:
L - readLines(con - file(log2.log, encoding=UCS-2LE)
z - read.zoo(textConnection(L), index = 1:2,FUN = function(x)
paste(x[,1], x[,2]))
Error:
Error en x[, 1] : número incorreto de dimensiones
Please
On 07/07/2010 9:16 AM, Sebastian Kruk wrote:
I have a text file log2.log encoded Ansi in Windows.
What Windows calls Ansi is called latin1 in R. You said the
encoding was UCS-2LE, which Windows calls Unicode. Part of your
problem might be this mismatched encoding. Have you tried using
Dear r-helpers,
I use function step.gam (package gam, T. Hastie) with several explanatory
variables to build a model. Unfortunately, I obviously have too many variables.
This message occurs on my 4 core 64bit machine with 8GB RAM in R2.11.1 for
Windows (64bit build):
Error in array(FALSE,
Tal Galili wrote:
Hello David,
Thanks to your posting I started looking at the function in the arm package.
It appears this function is quite mature, and offers (for example) the
ability to easily overlap coefficients from several models.
I updated the post I published on the subject, so at
Dear all
My question is more on statistics than on R, however it can be
demonstrated by R. It is about pros and cons trying to find a relationship
by aggregated data. I can have two variables which can be related and I
measure them regularly during some time (let say a year) but I can not
Thanks Michael - I now inserted the correct image for Achim example code.
Contact
Details:---
Contact me: tal.gal...@gmail.com | 972-52-7275845
Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) |
I am trying to work with the Date class which is written in S3 and I would
like to access to the elements of the class (for example the year). I've
tryed to do it for example like this:
as.Date(Sys.time)-w
w$year #Doesn't work
w[year] #is NA
I would like to know the correct way to acces to this
I am trying to test goodness of fit for my legalistic regression using several
options as shown below. Â Hosmer-Lemeshow test (whose function I borrowed from
a previous post), Hosmerâle Cessie omnibus lack of fit test (also borrowed
from a previous post), Pearson chi-square test, and deviance
In both cases I obtain:
01/02/70
01/03/70
01/04/70
01/05/70
01/06/70
01/07/70
01/08/70
01/09/70
01/10/70
01/11/70
01/12/70
01/13/70
01/14/70
01/15/70
01/16/70
01/17/70
01/18/70
01/19/70
01/20/70
01/21/70
01/22/70
01/23/70
01/24/70
01/25/70
01/26/70
01/27/70
01/28/70
01/29/70
01/30/70
01/31/70
On Jul 7, 2010, at 7:25 AM, Elisenda Vila wrote:
I am trying to work with the Date class which is written in S3 and I
would
like to access to the elements of the class (for example the year).
I've
tryed to do it for example like this:
as.Date(Sys.time)-w
Throws an error ... since
No one replied to my second question: how to get standard errors or
confidence intervals for the
estimated fixed effects from lme().AFAICS, intervals() only gives
CIs for coefficients.
My working example is:
library(nlme)
library(lattice)
Ortho - Orthodont
Ortho$year - Ortho$age - 8 #
On Wed, Jul 07, 2010 at 01:25:43PM +0200, Elisenda Vila wrote:
I am trying to work with the Date class which is written in S3 and I would
like to access to the elements of the class (for example the year). I've
tryed to do it for example like this:
as.Date(Sys.time)-w
w - Sys.Date() #
The first two options are GOF-tests for ungrouped data, the latter two
can only be used for grouped data. According to my experience, the G^2
test is more influenced by this than the X^2 test (gives -wrongly-
significant deviations more easily when used for ungrouped data).
If you started from
Dear Achim and Michael,
Thank you so much. Indeed, mosaic(Titanic, gp = shading_hcl, gp_args = list(lty
= 1:2, c = 0)) does almost what I was looking for, except that for consistency
and clarity, I would have expected the negative values on the legend to be be
outlined with lty = 2.
Michael
Hi Everyone,
Im trying to figure out how to get R to analyze this experiment properly. I
have a series of subjects each with two legs. Within each leg there are two
bones that I am interested in. There are also two treatments that I am
interested in. That results in four different
Thanks a bunch, it works.
On Thu, Jul 1, 2010 at 4:50 PM, Nikhil Kaza nikhil.l...@gmail.com wrote:
explicit call to print usually works for me.
library(audio)
for (i in 1:5){
wait(60)
print(Sys.time())
}
On Jul 1, 2010, at 4:30 PM, Matt Shotwell wrote:
Try to flush output after
Hello, everyone
F# is now public. Compiled code should run faster than R.
Anyone has opinion on F# vs. R? Just curious
Best,
S
--
---
Kniven skärpes bara mot stenen.
__
R-help@r-project.org mailing list
You examples are pretty extreme... Combining 120 data points in 4
points is off course never going to give a result. Try :
fac - rep(1:8,each=15)
xprum - tapply(x, fac, mean)
yprum - tapply(y, fac, mean)
plot(xprum, yprum)
Relation is not obvious, but visible.
Yes, you lose information. Yes,
We want to sum many vectors and numbers together as a vector if there is
at least one vector in the arguments.
For example, 1 + c(2,3) = c(3,4).
Since we are not sure arguments to sum, we are using sum function:
sum(v1,v2,...,n1,n2,..).
The problem is that sum returns the sum of all the values
g...@ucalgary.ca wrote:
We want to sum many vectors and numbers together as a vector if there is
at least one vector in the arguments.
For example, 1 + c(2,3) = c(3,4).
Since we are not sure arguments to sum, we are using sum function:
sum(v1,v2,...,n1,n2,..).
The problem is that sum returns
On Wed, Jul 7, 2010 at 11:35 AM, g...@ucalgary.ca wrote:
We want to sum many vectors and numbers together as a vector if there is
at least one vector in the arguments.
For example, 1 + c(2,3) = c(3,4).
Since we are not sure arguments to sum, we are using sum function:
On Jul 7, 2010, at 10:31 AM, Sergey Goriatchev wrote:
Hello, everyone
F# is now public. Compiled code should run faster than R.
Anyone has opinion on F# vs. R? Just curious
Best,
S
The key time critical parts of R are written in compiled C and FORTRAN.
Of course, if you want to
I read through Harrington and Fleming (1982) but it is beyond my
statistical comprehension. I have survival data for insects that have
a very finite expiration date. I'm trying to test for differences in
survival distributions between different groups. I understand that
the medical field is
David Winsemius dwinsemius at comcast.net writes:
On Jul 7, 2010, at 9:23 AM, Andrew Leeser wrote:
I am looking for a way to trim leading and trailing spaces in a
character
string in R. For example:
this is random text
should become:
this is random text.
Dear Joris,
Â
Thank you for your prompt reply! I have a binary dependent variable (whether a
snake is pregnant or not pregnant). Independent/predictor variable is the
snake's body size. Each observation (row) of the data represents each snake.
One column of the data contain '0' or '1' to
With grDevices package, I do the following to generate a greyscale:
newcols - colorRampPalette(c(white, black)) #generates palette from
white to black
#OR
newcols - colorRampPalette(c(grey90, grey10)) #generates palette
frome light to dark grey for better visibility
Then in the wireframe()
Chapter 10 of 'An Introduction to R' has the
suggestive title Writing your own functions.
Isn't that the *first* place you would look?
-Peter Ehlers
On 2010-07-06 20:57, jd6688 wrote:
Thanks Joshua for the example which has been great help me to start.
Wish you the best
Jason Ding
On
I dont get any putput by merging.
merge(file1,file2)
[1] Date Price
0 rows (or 0-length row.names)
file3-merge(file1,file2,by.file1='Date')
file3
[1] Date Price
0 rows (or 0-length row.names)
The above are the results. Nothing is coming in file3.
On 7/7/10, Peter Alspach-2 [via R]
I was able to achieve the desired output. The issue I had was that
both the files contained the Date column in the data format. So, i
first converted this colum alone into numeric and then did a merge on
the files and it worked. The moral is that in any dataframe all
variable have to be of similar
I tried and this error popped:
z1 - read.zoo(textConnection(Lines1), header = TRUE, format = fmt)
Error in textConnection(Lines1) : invalid 'text' argument
Also library(chron) returns error as it is an invalid library. Could you help?
On 7/7/10, Gabor Grothendieck [via R]
Say I have two files file and file2:
file1 contains the following:
DatePrice
02/07/2010 53.96597903
03/07/2010 56.92825807
04/07/2010 39.27408645
05/07/2010 42.59834151
06/07/2010 70.68512383
07/07/2010 10.92505265
08/07/2010 52.12492249
On Wed, 7 Jul 2010, Michael Kubovy wrote:
Dear Achim and Michael,
Thank you so much. Indeed, mosaic(Titanic, gp = shading_hcl, gp_args =
list(lty = 1:2, c = 0)) does almost what I was looking for, except that
for consistency and clarity, I would have expected the negative values
on the
Hello together,
I'm looking for advice on how to do some tests on strings.
What I want to do is the following:
(just an example, real strings/sequence are about 200-400 characters long)
given set of Strings:
String1 abcdefgh
String2 bcdefgop
use a sliding window of size x to create an vector
My routine (below) works OK but misbehaves if the on-screen plot is made
wider using the mouse.
The problem is caused by using
par(usr)[1] - 0.07 * (par(usr)[2] - par(usr)[1])
to locate two items on the y-axis. The rest of the labeling is controlled
by the line=0 parameter setting.
The mean values theorem of integration (which I think typifies the differences
in thinking between mathematicians and statisticians) says that the integral
from a to b is equal to the average value of the curve between a and b times
the distance from a to b (b - a).
I would be interested in
On Jul 7, 2010, at 10:19 AM, Michael Friendly wrote:
Tal Galili wrote:
Hello David,
Thanks to your posting I started looking at the function in the arm
package.
It appears this function is quite mature, and offers (for example)
the
ability to easily overlap coefficients from several
On Wed, Jul 7, 2010 at 12:25 PM, Immanuel mane.d...@googlemail.com wrote:
Hello together,
I'm looking for advice on how to do some tests on strings.
What I want to do is the following:
(just an example, real strings/sequence are about 200-400 characters long)
given set of Strings:
Hello, Marc
No, I do not want to validate Cox PH. :-)
I do use R daily, though right now I do not use the statistical part that much.
I just generally wonder if any R-user tried F# and his/her opinions.
Regards,
Sergey
On Wed, Jul 7, 2010 at 17:56, Marc Schwartz marc_schwa...@me.com wrote:
Dear Suresh,
The gnm package for generalized nonlinear models might be what you want
here. This allows you to specify nonlinear models with family=quasipoisson.
For an introduction to the package see the article in R News:
http://cran.r-project.org/doc/Rnews/Rnews_2007-2.pdf
If your model
Here is some code to get you started:
plot.new()
plot.window( c(0,10), c(-1, 1) )
axis(1, at=0:10, pos=0)
lines( c(2,2,5,5), c( -0.25, -0.5, -0.5, -0.25 ) )
text( 3, -0.6, 'Interval 1' ) # the plotrix package has a function for text in
a box
lines( c(3,3,6,6), c( 0.1, 0.3, 0.3, 0.1) )
text(
Hey,
big help, thanks!
One little question remains, if I create
more then one string and table ...
-
# generate an input string n long
set.seed(123)
n - 300
lets_1 - paste(sample(letters[1:5], n, replace = TRUE), collapse = )
lets_2 - paste(sample(letters[1:5], n, replace =
fortune(197)
If anything, there should be a Law: Thou Shalt Not Even Think Of Producing A
Graph That Looks Like Anything From A Spreadsheet.
-- Ted Harding (in a discussion about producing graphics)
R-help (August 2007)
Filling graphics objects with lines dates back to the days when
On Wed, Jul 7, 2010 at 1:15 PM, Immanuel mane.d...@googlemail.com wrote:
Hey,
big help, thanks!
One little question remains, if I create
more then one string and table ...
-
# generate an input string n long
set.seed(123)
n - 300
lets_1 - paste(sample(letters[1:5],
On Wed, Jul 7, 2010 at 1:25 PM, Gabor Grothendieck
ggrothendi...@gmail.com wrote:
On Wed, Jul 7, 2010 at 1:15 PM, Immanuel mane.d...@googlemail.com wrote:
Hey,
big help, thanks!
One little question remains, if I create
more then one string and table ...
-
# generate an
Check out the high performance computing task view on CRAN.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
project.org] On Behalf Of
On Wed, 2010-07-07 at 17:31 +0200, Sergey Goriatchev wrote:
Hello, everyone
F# is now public. Compiled code should run faster than R.
Anyone has opinion on F# vs. R? Just curious
Best,
S
Sergey,
F# is public, but is not open source.
F# run in windows but run in AIX, linux, MAC,
fortune(197)
If anything, there should be a Law: Thou Shalt Not Even Think Of Producing A
Graph That Looks Like Anything From A Spreadsheet.
-- Ted Harding (in a discussion about producing graphics)
R-help (August 2007)
Also read the discussion started with:
Hey,
saved my day.
Now can watch the football semi-final
thanks
Turn them into factors with the appropriate levels before counting
them with table:
# generate an input string n long
set.seed(123)
n - 300
lets_1 - paste(sample(letters[1:5], n, replace = TRUE), collapse = )
lets_2 -
Hi,
I am trying to superimpose (overlay) regression lines to scatter plots
by groups with xyplot (dysfunctional code below). However, my call of
panel.superpose breaks down because of the subscripts requirement. I
tried to research the documentation and examples, but I cannot figure
out how to
So, the problem was that R exports only double sized floats (double), and
Paraview requires single sized floats. The solution was just to write :
writeBin(data,bfile_celldata,endian=swap,size=4)
Special Thanks to Sebastian Gibb :
http://www.mail-archive.com/r-help@r-project.org/msg100994.html
ggplot2
ggplot2 is a plotting system for R, based on the grammar of graphics,
which tries to take the good parts of base and lattice graphics and
avoid bad parts. It takes care of many of the fiddly details
that make plotting a hassle
It may not help the original poster, but here's a solution based on what Greg
said above:
# Load plotrix
library(plotrix)
# Create a new layout to divide the graphics in 2, the first one (displaying
the persp() graph) being 4 times larger than the second one (displying the
legend)
On Wed, Jul 7, 2010 at 5:41 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote:
You want as.expression(b1), not expression(b1). The latter means
the
expression consisting of the symbol b1. The former means take the
object
stored in b1, and convert it to an expression..
Thanks to Duncan
I am pleased to announce to agenda for next weeks LondonR meeting:
LondonR meeting - 13th July 2010
Date: Tuesday 13th July 2010
Time: 6pm - 9pm
Venue: The Shooting Star
125 - 129 Middlesex Street
E1 7JF
Hello All,
I'm trying to pass the argument col.names to write.csv using '...'.
But I got the following warnings. Maybe it is very simple. But I'm not
sure what I am wrong. Could you please help point to me what the
problem is?
#
fun=function(x, ...) {
fr=parent.frame()
Here are what i am going to accomplish:
I have 400 files named as xxx.txt. the content of the file looks like the
following:
namecount
1. aaa 100
2. bbb2000
3. ccc300
4. ddd 3000
more that 1000 rows in each files.
these are the areas i need help:
1.
Here are what i am going to accomplish:
I have 400 files named as xxx.txt. the content of the file looks like the
following:
namecount
1. aaa 100
2. bbb2000
3. ccc300
4. ddd 3000
more that 1000 rows in each files.
these are the areas i need help:
1. how can i
I need to use contr.sum and observe that some levels are not statistically
different from the overall mean of zero.
What is the proper way of forcing the zero estimate? It seems the column
corresponding to that level should become a column of zeros.
Is there a way to achieve that without me
I expected this script to show nine panels, each with a plot of the
function.
But when I run it, only the diagonal panels have content.
Executing print(trel_1) shows what I expected in the upper left corner.
I am using R ver. 2.11.0 and lattice ver. 0.18-8 on Windows XP under
Eclipse and
1 - 100 of 179 matches
Mail list logo