Lower case vignette("Runuran")
Sorry, it's this clever email program.
R.
Dr. Rubén Roa-Ureta
AZTI - Tecnalia / Marine Research Unit
Txatxarramendi Ugartea z/g
48395 Sukarrieta (Bizkaia)
SPAIN
-Mensaje or
> as.data.frame(t(df))
For example
> x <- as.data.frame(t(mtcars))
> typeof(x)
[1] "list"
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
On Behalf Of Sebastian Bauer
Sent: Tuesday, March 02, 2010 8:12 AM
To: r-help@r-project.org
Subject: [R]
Dear All,
Consider the following trivial code snippet
rm(list=ls())
name_vec <- c("color1", "color2")
pdf("test_color.pdf")
plot(seq(5), seq(5), main=paste(name_vec[1]," and ",name_vec[2], sep=""))
dev.off()
What I would like to achieve is rather simple to explain, but it is
giving me a head
>From what distribution?
If the uniform,
runif(100,0,2*pi)
If another, install package Runuran, and do this
?Runuran
Vignette("Runuran")
HTH
Dr. Rubén Roa-Ureta
AZTI - Tecnalia / Marine Research Unit
Txatxarram
This is what you would use a 'list' for.
On Tue, Mar 2, 2010 at 6:29 AM, wrote:
> Hi,
> I have some vector v1,v2,...,vk, with different lengths. I want to
> consider these vectors as a matrix with k rows.
> Can you please guide me how I can do it?
>
> Regards
> khazaei
>
> _
Hello,
is there an elegant way, how I can convert each row of a data frame into
distinct elements of a list?
In essence, what I'm looking for is something like
rows.to.lists <- function( df ) {
ll <- NULL
for( i in 1:nrow(df) )
ll <- append( ll, list(df[i,]) )
> runif(20,0,2*pi)
[1] 1.29417642 1.10933879 4.31669186 2.41339484 4.83705630 3.12713657
4.50893007 6.23232980 2.38783146 4.88483239 5.87292617
[12] 1.33293077 4.09458703 0.7593 1.67899698 2.42602639 0.08413394
2.40261439 5.46442874 2.13847582
>
On Tue, Mar 2, 2010 at 5:51 AM, frederik vanha
On Tue, 2 Mar 2010 11:51:39 +0100 frederik vanhaelst
wrote:
> How could i generate random real numbers between 0 en 2*pi?
Ten such numbers from the uniform distribution:
2*pi*runif(10)
--
Karl Ove Hufthammer
__
R-help@r-project.org mailing list
ht
On Tue, Mar 2, 2010 at 7:27 AM, Duncan Murdoch wrote:
> John Sorkin wrote:
>>
>> Please take what follows not as an ad hominem statement, but rather as an
>> attempt to improve what is already an excellent program, that has been built
>> as a result of many, many hours of dedicated work by many, m
Hi all,
I have a (hopefully) simple newbie-level question.
# I have data like this:
dtf <- data.frame(read.table(textConnection("var value
company 9887.1
company 91117.0
blaah 91.1
etc 11
etc 97111"), header=TRUE))
# I would like to have output like this (the index number may
Hi Brandon,
I just read this book, which I am sure you will be interested in:
http://www.amazon.com/SAS-SPSS-Users-Statistics-Computing/dp/0387094172
Cheers!!
Albert-Jan
~~
In the face of ambiguity, refuse the temptation to gue
John Sorkin wrote:
Please take what follows not as an ad hominem statement, but rather as an
attempt to improve what is already an excellent program, that has been built as
a result of many, many hours of dedicated work by many, many unpaid, unsung
volunteers.
It troubles me a bit that when a
On Tue, 2 Mar 2010 12:29:28 +0100 (CET) khaz...@ceremade.dauphine.fr
wrote:
> I have some vector v1,v2,...,vk, with different lengths. I want to
> consider these vectors as a matrix with k rows.
> Can you please guide me how I can do it?
What do you want to do with the missing elements?
--
Ka
On Tue, 2 Mar 2010 12:31:45 +0100 Brandon Zicha
wrote:
> Easy. I terms of materials I have been unable to find good books that
> introduce users to R from the perspective of someone familiar only
> with packages like SPSS or STATA,
Have you read these books:
R for SAS and SPSS Users
http:/
Greetings, fellow travelers.
When I paste a series of commands into R, they execute serially, and when I
go back through commands by hitting the up key, they show up as a block,
rather than as individual lines. Is there any way to change this behavior?
I'm running the 32-bit build of R 2.10.1 on M
Hi,
How could i generate random real numbers between 0 en 2*pi?
Thanks,
Frederik
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://ww
Brandon Zicha wrote:
What were your biggest misconceptions or
stumbling blocks to getting up and running
with R?
Easy. I terms of materials I have been unable to find good books that
introduce users to R from the perspective of someone familiar only
with packages like SPSS or STATA, or not f
Hi,
I hope somebody can give me an idea where can I can find the code for empirical
copula.
I have a bivariate data.
Thank you so much for your help.
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https:
Please take what follows not as an ad hominem statement, but rather as an
attempt to improve what is already an excellent program, that has been built as
a result of many, many hours of dedicated work by many, many unpaid, unsung
volunteers.
It troubles me a bit that when a confusing aspect of
What were your biggest misconceptions or
stumbling blocks to getting up and running
with R?
Easy. I terms of materials I have been unable to find good books that
introduce users to R from the perspective of someone familiar only
with packages like SPSS or STATA, or not familiar with statist
Hi,
I have some vector v1,v2,...,vk, with different lengths. I want to
consider these vectors as a matrix with k rows.
Can you please guide me how I can do it?
Regards
khazaei
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r
On Mon, Mar 1, 2010 at 10:49 AM, Duncan Mackay wrote:
> Dear All
>
> Below is a toy example of a modified standard bwplot.
>
> require(lattice)
> DF <-
> data.frame(site = rep(1:5, each = 20),
> height = rnorm(100))
>
> bwplot(site ~ height,DF,
> pch = "|",
> par.settings = list(strip.ba
On Mon, Mar 1, 2010 at 11:49 PM, Liviu Andronic wrote:
> On 3/1/10, Keo Ormsby wrote:
>> Perhaps my biggest problem was that I couldn't (and still haven't) seen
>> *absolute beginners* documents.
>>
> there was once a link posted on r-sig-teaching that would probably fit
> your needs, but I cann
I am trying to load package fpc in order to use the 'plotcluster' function
however everytime I attempt to do so I get the following warning message:
> library(fpc)
Loading required package: MASS
Error: package 'MASS' could not be loaded
In addition: Warning messages:
1: pac
>From CRAN:
"2.8 What's the best way to upgrade?
That's a matter of taste. For most people the best thing to do is to
uninstall R (see the previous Q), install the new version, copy any
installed packages to the library folder in the new installation, run
update.packages(checkBuilt=TRUE, ask=FAL
G'day Sundar,
On Mon, 1 Mar 2010 23:46:55 -0800
Sundar Dorai-Raj wrote:
> Thanks for the input, but I don't want "try" in the Sweave output. I
> want the output to look just like it does in the console, as if an
> uncaptured error really did occur.
I don't think that you will get around using "
The dsread output is little-endian, as that's the native format for
floats on the Wintel platform. The byte order should stay the same if
converting directly to a float, using a data structure like (C/C++):
union {
char bytes[8];
double value;
}
If reading the values with a SAS HEX i
Ted,
Brilliant explanation (as usual)
I'm back in school, just starting on a post-graduate degree in stats so
the help is really appreciated.
Now, I have a slightly trickier question about the same model.
I've seen more than one way to get "values" out of the glm model.
i.e. If we're looki
Dear R users
Today I discovered that function lm.influence() stops when applied to
glm objects with the following error message
Error in if (NROW(e) != n) stop("non-NA residual length does not match
cases used in fitting") :
argument is of length zero
After inspecting lm.influence.R (both into
On Mon, 01 Mar 2010 10:00:07 -0500 Duncan Murdoch
wrote:
> Suppose X is a dataframe or a matrix. What would you expect to get from
> X[1]? What about as.vector(X), or as.numeric(X)?
All this of course depends on type of object one is speaking of. There
are plenty of surprises available, and
On Mon, 01 Mar 2010 16:26:37 - (GMT) ted.hard...@manchester.ac.uk
wrote:
> In vim (to which I'm wedded
> for life) it will pick up matching (), {} and [].
You can also easily move between matching delimeter by typing '%'. A
similar feature should be available in all *good* text editors.
--
On Mon, 1 Mar 2010 14:23:04 -0500 Liaw, Andy
wrote:
> Indeed this is one of the (few, I believe) traps of R,
Oh, no; there are many more:
http://www.burns-stat.com/pages/Tutor/R_inferno.pdf :-)
--
Karl Ove Hufthammer
__
R-help@r-project.org mailing
Hello John,
As you said, I could also take a means model and test linear hypothesis for
the desired effects - would this also be the case for the repeated measure i
did in the first place.
I copied the model from the car model where you first call:
> modx<-lm(cbind(div_h, div_l) ~ site, divrep
Thanks, Berwin. That works just great!
--sundar
On Tue, Mar 2, 2010 at 12:57 AM, Berwin A Turlach
wrote:
> G'day Sundar,
>
> On Mon, 1 Mar 2010 23:46:55 -0800
> Sundar Dorai-Raj wrote:
>
> > Thanks for the input, but I don't want "try" in the Sweave output. I
> > want the output to look just li
On Mon, 1 Mar 2010, FMH wrote:
Dear All,
I'm trying to find changepoints in a data series which only consist of 11
measurements of altitude(x) and temperature(y), respectively, in which the data
are as followed:
y = 16.3, 16.2, 16.1, 15.6, 14.2, 10, 8.2, 8.0, 7.5, 7.3, 7.2
x = 1, 2, 5,
On Mon, 2010-03-01 at 16:55 -0500, Diana Connett wrote:
> Hello.
> I just downloaded R onto a new computer, and after entering library(MASS), I
> still get the message "Error: could not find function "predict.lda"" when I
> try
> to use the predict.lda function (even just "predict.lda()")
>
> Can
On Mon, 1 Mar 2010, Emil Davtyan wrote:
Hello -
I need to do simple linear autoregressive model with R software for my
thesis. I looked into all your documentation and I am not able to find
anything too helpful. Can someone help me with the codes?
By "all documentation" you mean that you ha
Emil Davtyan wrote:
Hello -
I need to do simple linear autoregressive model with R software for my
thesis. I looked into all your documentation and I am not able to find
anything too helpful. Can someone help me with the codes?
Thanks
Emil
[[alternative HTML version deleted]]
__
On 02-Mar-10 08:02:27, Noah Silverman wrote:
> Hi,
> I'm just learning about poison links for the glm function.
>
> One of the data sets I'm playing with has several of the
> variables as factors (i.e. month, group, etc.)
>
> When I call the glm function with a formula that has a factor
> variabl
I have been reading binary files, and parsing the output, for some
time now. I have tried to develop a technique that is as robust as
possible to all the strange things that appear in text fields, not to
mention different global/regional encodings. I have no control over
the data generated by use
Quoting Uwe Ligges :
R is not able to re-encode the file to the native encoding. But if you
keep it in UTF-8, what is the problem to grep for the specific
characters (as grep and friends support the argument useBytes these
days)?
The Problem with UTF-8 is that I'm not able to cat a valid xml-
On Tue, 2 Mar 2010 08:58:25 +1300 Peter Alspach
wrote:
> This brings up another confusion for new users. Simply typing the
> object name at the command line gives just one view of the object (that
> provided by print()).
Good point. Any good introduction to R should include a brief discussion
Hi,
I'm just learning about poison links for the glm function.
One of the data sets I'm playing with has several of the variables as
factors (i.e. month, group, etc.)
When I call the glm function with a formula that has a factor variable,
R automatically converts the variable to a series of
101 - 143 of 143 matches
Mail list logo