I am trying to write some code where the factor references its
previous value, but can't find a solution searching through the
archive.
> X
first second
1 A 1
2 A 2
3 B 3
4 B 4
5 B 5
6 C 6
7 C 7
I need a third column, in pseudo co
You do not provide a workable example and it appears you may be
conflating the German and English spellings of "group", but perhaps
this code fragment using the first example in boxplots help menu will
move you along. It results in drawing the connecting lines to the
minimum value in each g
Thank your comments very much.
Thank to your help, I understood a flow for a text analysis.
However, I could not run the above R scripts because tm package does
not work in my PC that is a critical error.
Kum Hwang Ph.D.
On Sat, Jan 10, 2009 at 12:39 AM, Tony Breyal
wrote:
> Hi there, I think
Thank Prof. Brian Ripley for your comments.
Based on Prof Brian Ripley's comments, I checked Java environments in
my PC. But I have not solved a "tm" package problem in Win R software.
I am not sure but my current conclusion is that the Win-based R binary
software has definitely a problem with Rwe
Hi:
I need help merging rows.
I am trying to merge the 'Month' column using \multirow. For example for the
column 'Week' I want July to be merged into one row(weeks 27,28,29,30) and so
on for the following weeks.
Below, I am creating a PDF using Sweave, MikTex,R-2.8.1 and windows XP to show
an e
Hi miltinho,
The book "Analysing Spatial Point Pattern Data" is still coming soon. I
concerned it for a long time. Do you get it? Just like you said, I think it
will be very very well informative!
Thank you!
I have some 100m*100m plot data about almost one tree species, but I do not
know how to ex
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
S Ellison wrote:
> Just 'cos it's bent doesn't mean you need nls.
Sorry, my bad! :o(
> With your data, lm fits (suspicously!) well...
Nothing suspiciousjust benchmarking some functions with different sized
inputs!
Thanks for the help!
Nathan
Hi,Jones,
Got it! And only pn0y is enough?
Best wishes and Happy New Year!
Kingsford Jones wrote:
>
> Unangu,
>
> If you haven't seen the 200pg workshop notes that Adrian Baddeley has
> made available from his spatstat webpage, I highly recommend them:
>
> http://www.csiro.au/files/files/pn0
In other words: I will connect the median, min and the max area of the
boxplot with a line.
The function lines() could help me, but I don't know which parameters the
lines() function should have.
johnhj wrote:
>
> Hii,
>
> I created some boxplots with this commands:
>
> x <-read.table
On Sun, Jan 11, 2009 at 9:04 PM, Jörg Groß wrote:
> ...now I want to get the mean and sd, as long as the column is not of type
> factor.
> ...But how can I check this, if I don't know the column name?
>
...
> is.factor(d[1])
> produces "FALSE".
>
Try is.factor(d[[1]]). Remember that in R, x[...
Just 'cos it's bent doesn't mean you need nls.
With your data, lm fits (suspicously!) well...
y<-c(0.000,0.004,0.008,0.016,0.024,0.032,0.044,0.064,0.072,0.088,0.108,0.140
,0.156,0.180,0.208,0.236,0.264,0.296,0.320,0.360,0.408,0.444,0.472,0.524
,0.576)
x<-c(100,200,300,400,500,600,700,800,900,1000
As x goes from 200 to 400, y goes from ,004 to .016 so y is
quadrupling while x doubles -- quadratic growth.Fitting
to a quadratic and plotting shows this to be the case. Note
that for y to be quadratic in x it must be linear in the coefficients
of x so we can just use lm and don't need nls:
First, try plot(x,y)
If you want to use nls, you have to specify a nonlinear function to fit
to your data. See ?nls.
If you are really stuck on how to fit regression models, you should
consult a statistician (CSIRO has a lot of expertise).
Simon.
On Mon, 2009-01-12 at 12:19 +1000, Nathan S. Wa
try this:
> d <- data.frame(c(rep("m",5), rep("f",5)), c(1:10))
> names(d) <- c("x", "y")
> d
x y
1 m 1
2 m 2
3 m 3
4 m 4
5 m 5
6 f 6
7 f 7
8 f 8
9 f 9
10 f 10
> lapply(d, function(x) if (is.numeric(x)) c(mean=mean(x), sd=sd(x)))
$x
NULL
$y
mean sd
5.50 3.027
names(datanamessplit) <- gsub("count.", "", names(data))
On Sun, 2009-01-11 at 18:13 -0800, jimdare wrote:
> Hi,
>
> If I have the following column names:
>
> names(data)
> [1] "count.run" "count.walk" "count.drive"
>
> How do I split these so i get
>
> names(datanamessplit)
> [1] "run"
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I have the following data:
> y
[1] 0.000 0.004 0.008 0.016 0.024 0.032 0.044 0.064 0.072 0.088 0.108 0.140
[13] 0.156 0.180 0.208 0.236 0.264 0.296 0.320 0.360 0.408 0.444 0.472 0.524
[25] 0.576
> x
[1] 100 200 300 400 500 600 700 800 900 1
Hi,
If I have the following column names:
names(data)
[1] "count.run" "count.walk" "count.drive"
How do I split these so i get
names(datanamessplit)
[1] "run" "walk" "drive"
Thanks for your help,
Jim
--
View this message in context:
http://www.nabble.com/Spitting-a-df-Column-Name-t
Hi,
I try to write an own function in R.
I want a summary table with descriptive statistics.
For example, I have this data.frame:
d <- data.frame(c(rep("m",5), rep("f",5)), c(1:10))
names(d) <- c("x", "y")
d
x y
1 m 1
2 m 2
3 m 3
4 m 4
5 m 5
6
The article was dugg on Digg.
http://digg.com/software/Data_Analysts_Captivated_by_R_s_Power_3
If you Digg, why not digg this.
Farrel Buchinsky
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting
Yes, download the HH package from CRAN and then see
?HH::orthog.complete
for the function description and several examples.
Rich
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behalf Of megh
Sent: Sunday, January 11, 2009 19:29
To: r-help@r-
Is there any R function which calculate the Orthogonal Complement of a mxn
matrix (with full column rank)?
Thanks in advance
--
View this message in context:
http://www.nabble.com/Orthogonal-Complement-tp21406355p21406355.html
Sent from the R help mailing list archive at Nabble.com.
__
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
I have no idea of what you would like to do with the tick marks. I
assume you can always use 'axis' to label your axis:
boxplot(len ~ dose, data = Tooth
Hi Ravi, Thanks for this reply. However I could not understand meaning of
"vectorizing the function". Can you please be little bit elaborate on that?
Secondly the package "polynomial" is not available in CRAN it seems. What is
the alternate package?
Thanks,
Ravi Varadhan wrote:
>
> Hi,
>
> Yo
Hii,
I created some boxplots with this commands:
x <-read.table(file="test.txt")
x$group <- rep(1:8, each=5)
boxplot(V3~gruppe, data=x)
Now, I will connect the boxplots to each other to the min, max and median
values.
Can anybody help me how to do it ?
greetings,
J
--
View this message in
Thank you very much for you help...
Carlos J. Gil Bellosta wrote:
>
> Hello,
>
> The following code may help you:
>
>> my.matrix <- matrix( rnorm(16), ncol = 4 )
>> boxplot( my.matrix ~ col( my.matrix ) )
>
> Best regards,
>
> Carlos J. Gil Bellosta
> http://www.datanalytics.com
>
>
>
On Jan 11, 2009, at 4:38 PM, Jörg Groß wrote:
Hi,
I have a data frame and would like to have summary statistics for
grouped data.
With summary() I get the central tendencies for the overall data.
How can I get descriptive statistics with variances and standard
deviations?
In the futu
You can use summaryBy() in the doBy package:
summaryBy(y+x~group, data=mydata, FUN=c(mean,sd))
Søren
Fra: r-help-boun...@r-project.org på vegne af Jörg Groß
Sendt: sø 11-01-2009 22:38
Til: r-help@r-project.org
Emne: [R] summary with variance / sd
Hi,
I hav
Hi,
I'd like to change the y-tickmarks of a boxplot.
But it doesn't work with yaxp (like I would do it in a plot-function).
Can someone help me out?
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the p
Hi Jörg,
?by
here probably something like
by(data=mydata,INDICES=mydata$group, FUN=sd, ...)
HTH,
Stephan
Jörg Groß schrieb:
Hi,
I have a data frame and would like to have summary statistics for
grouped data.
With summary() I get the central tendencies for the overall data.
How can I g
Hi,
I have a data frame and would like to have summary statistics for
grouped data.
With summary() I get the central tendencies for the overall data.
How can I get descriptive statistics with variances and standard
deviations?
for example my data.frame:
group x y
exp
Hi,
You can use the "polynomial" package to solve your problem.
The key step is to find the exact polynomial representation of fn(). Noting
that it is a 8-th degree polynomial, we can get its exact form using the
poly.calc() function. Once we have that, it is a simple matter of finding the
r
I don't mind at all.
Very kind of you Kingsford.
Thanks,
Marc
on 01/11/2009 01:05 PM Kingsford Jones wrote:
> I hope that Marc doesn't mind, but I felt that part of his recent post
> was important enough to deserve it's own subject line rather then
> being lost in a 60-msg-long thread...
>
>
I hope that Marc doesn't mind, but I felt that part of his recent post
was important enough to deserve it's own subject line rather then
being lost in a 60-msg-long thread...
On Sun, Jan 11, 2009 at 10:08 AM, Marc Schwartz
wrote:
...
I strongly believe that the comments regarding R and the FD
Hi Unangu
I also put my two cents on the Kingsford´s suggestion.
The "BOOK" the Adrian turned available are very very well informative!
I enjoyed so much!
Best wishes
miltinho,
brazil
On Sun, Jan 11, 2009 at 3:48 PM, Kingsford Jones
wrote:
> Unangu,
>
> If you haven't seen the 200pg workshop n
Unangu,
If you haven't seen the 200pg workshop notes that Adrian Baddeley has
made available from his spatstat webpage, I highly recommend them:
http://www.csiro.au/files/files/pn0y.pdf
hth,
Kingsford Jones
On Sat, Jan 10, 2009 at 9:04 PM, Unangu wrote:
>
> To understand some functions about
on 01/10/2009 01:50 PM Kingsford Jones wrote:
> The reactions to the NYT article have certainly made for some
> interesting reading.
>
> Here are some of the links:
>
> http://overdetermined.net/site/content/new-york-times-article-r
>
> http://jackman.stanford.edu/blog/?p=1053
>
> http://ggorja
ms.com hotmail.com> writes:
> i want to upgrade my R version from 2.7.1 to 2.8.1
Gabor's
http://code.google.com/p/batchfiles/
can help you getting the libraries right after an upgrade.
Dieter
__
R-help@r-project.org mailing list
https://stat.ethz
Do you mean how to create an R function, CD, that
represents the resulting function of x? If that's it
then try this:
> CD <- function(x) {}
> body(CD) <- yacas("Integrate(y,0,1-x)2 - x - y - 1")[[1]]
> CD
function (x)
(1 - x)^2 - (1 - x)^2/2
See ?bodyAsExpression for more info. Also try:
On Sun, Jan 11, 2009 at 9:38 AM, Gundala Viswanath wrote:
> Hi all,
>
> Given a matrix:
>
>> mat
>
>[,1] [,2] [,3]
> [1,]000
> [2,]333
> [3,]111
> [4,]211
> How can I convert it to a list of strings:
>> desired_output
> [1] "aaa" "ttt" "ccc" "g
one way is the following:
mat <- matrix(sample(0:3, 12, TRUE), 4, 3)
strg <- c("a", "c", "g", "t")
out <- strg[mat + 1]
dim(out) <- dim(mat)
apply(out, 1, paste, collapse = "")
I hope it helps.
Best,
Dimitris
Gundala Viswanath wrote:
Hi all,
Given a matrix:
mat
[,1] [,2] [,3]
[1,]
try this:
> mapping <- c('0'='a', '1'='c', '2'='g', '3'='t')
> x <- matrix(sample(0:3, 30, TRUE), ncol=3)
> x
[,1] [,2] [,3]
[1,]311
[2,]132
[3,]111
[4,]111
[5,]213
[6,]130
[7,]132
[8,]310
You need to cat the results using odfCAt, otherwise you are just
writing the output with no XML around it.
Max
On Jan 11, 2009, at 8:42 AM, "Mark Heckmann"
wrote:
Hi everybody,
I don't get odfWeave to run properly. My odt file is as a simple as:
Some text.
<
Hello,
Can You help me? How to save this functions in cd:
install.packages("Ryacas", dep = TRUE)
library(Ryacas)
yacasInstall()
yacas("Integrate(z,1,2-x-y)1")
yacas("Integrate(y,0,1-x)2 - x - y - 1")
yacas("Integrate(x,0,1)(1 - x)^2 - (1 - x)^2/2")
Thanks You,
Sincerely, Jolka
_
On 11/01/2009 10:06 AM, Oliver wrote:
Hello,
is the reference manual also available with each explained
function beginning on a seperate page?
Or can this somehow be done easily?
I prefer reading documentation on paper, but printing makes more
sense, when each function can be printed seperate
Thank you very much!
Mike Lawrence-7 wrote:
>
> Amazon lists 2 used copies for sale:
> http://www.amazon.com/Statistical-Analysis-Spatial-Point-Patterns/dp/0340740701
>
>
> On Sun, Jan 11, 2009 at 12:04 AM, Unangu wrote:
>>
>> To understand some functions about spatial point patterns in "spat
Hadassa,
On 11 January 2009 at 15:29, Hadassa Brunschwig wrote:
| Again, I am trying to include a C function tools.c into a main.c file
| which needs to be run via R.
| I include the header file via #include tools.h .
| What I understood is that I need another file which specifically links
| the
Hi all,
Given a matrix:
> mat
[,1] [,2] [,3]
[1,]000
[2,]333
[3,]111
[4,]211
How can I convert it to a list of strings:
> desired_output
[1] "aaa" "ttt" "ccc" "gcc"
In principle:
1. Number of Column in matrix = length of string (= 3)
2. N
Hello,
The following code may help you:
> my.matrix <- matrix( rnorm(16), ncol = 4 )
> boxplot( my.matrix ~ col( my.matrix ) )
Best regards,
Carlos J. Gil Bellosta
http://www.datanalytics.com
On Sun, 2009-01-11 at 05:23 -0800, johnhj wrote:
> Hii,
>
> I will create boxplots from matrices.
Hi,
I have found that when I run my .rnw file through Sweave it removes
the \end{table} LaTeX command after the table that was not generated
using R.:
excerpt from my .rnw file
...
6.000 -- 6.003 & 3 &0.6 \\
\hline
8.500 -- 8.505 & 4 &0.8 \\
\hline
Grand Tota
Hii,
I will create boxplots from matrices. I have the following data sets:
5.0 1.78 2.99 2.019 0
10.0 1.79 3.00 1.744 0
15.0 1.78 2.98 1.936 0
20.0 1.78 2.99 1.975 0
25.0 1.73 2.91 3.591 0
30.0 1.7
Hi everybody,
I don't get odfWeave to run properly. My odt file is as a simple as:
Some text.
<>=
print(1:10)
@
---
The output I get ist the following:
---
> odfWeave("roffice.odt", "rofficeOUT.o
Hello,
is the reference manual also available with each explained
function beginning on a seperate page?
Or can this somehow be done easily?
I prefer reading documentation on paper, but printing makes more
sense, when each function can be printed seperated
(like in man-pages).
Any idea, how to
If the file represents a time series then you might want to look
at the zoo package. See read.zoo, in particular and
?strptime and R News 4/1 for the % codes and other
date/time info. Also ?lag.zoo
On Sun, Jan 11, 2009 at 12:22 AM, Heston Capital
wrote:
> I am new to R and am trying to import a
In theory,
you could define the following 2 functions
powermat <- function(myvec) {
powervec <- function(x,maxpower)
sapply(0:maxpower,function(n)x^n)
sapply(myvec,function(x)powervec(x,length(myvec)-1))
}
polycoeffs <- function(fn,order,support=0:order)
solve(t(powermat(support)),sappl
Hi all,
I have a question on the package « survey
I have some difficulties to use the function calibrate. Although it works
well with one single factor variable, I cannot use it for 2 and get the
message
Erreur dans regcalibrate.survey.design2(design, formula, population,
aggregate.stage
Mike Lawrence thatmike.com> writes:
>
> I suspect your example code is too long & complicated for anyone to bother
> attempting to help you.
[...]
Because of that I marked the line, where the error occured,
I thought it was easy to find out for experienced users.
But I just found the problem.
Hi
I have sent a previous email "Error in dyn.load()" for which, shame on
me, I later found a partial answer.
I have been trying to look into what I exactly need to include into
Makevars and where
it needs to be located and have not found a satisfying answer yet.
Maybe the following questions
are
On Sun, Jan 11, 2009 at 6:03 AM, RON70 wrote:
>
> Hi, I want find all roots for the following polynomial :
>
> a <- c(-0.07, 0.17); b <- c(1, -4); cc <- matrix(c(0.24, 0.00, -0.08,
> -0.31), 2); d <- matrix(c(0, 0, -0.13, -0.37), 2); e <- matrix(c(0.2, 0,
> -0.06, -0.34), 2)
> A1 <- diag(2) + a %*
Amazon lists 2 used copies for sale:
http://www.amazon.com/Statistical-Analysis-Spatial-Point-Patterns/dp/0340740701
On Sun, Jan 11, 2009 at 12:04 AM, Unangu wrote:
>
> To understand some functions about spatial point patterns in "spatstat" ,I
> should know some background about it, and the best
Brian,
Thank you for your reply and advice. I hope that I did not give the
impression that your build was the cause of the difficulties I
experienced. If so, I apologise for this.
Your email was helpful in alerting me to the need to install 'proxy'
and I subsequently located the current vers
I suspect your example code is too long & complicated for anyone to bother
attempting to help you. Try simplifying it to just a few lines; I've found
that the simplification process itself often leads me to the solution to my
own problem.
On Sun, Jan 11, 2009 at 6:50 AM, Oliver Bandel wrote:
> He
Since you are probably a Windows user (from the advert), see the R for
Windows FAQ, at
http://cran.r-project.org/bin/windows/base/rw-FAQ.html
or on the menus in your existing R installation.
On Sun, 11 Jan 2009, ms.com wrote:
dear all contributors
i am new R user
i want to upgrade my R versi
Hi everyone!
I am relatively new to writing R extensions and to C programming. I thus hope
that my question is not too basic. I am trying to load a shared object into R
via the command dyn.load("convertR.so") and I get the following error:
Error in dyn.load("convertR.so") :
unable to load shared
Hello,
here I have some code, which behaves quite strange, IMHO.
There is a "res.txt" which will be collected before printing it.
There is a paste-statement, which has a comment at the end of the line,
which is this one: "# !HERE!".
If you throw out the first hash-mark "#" on that line,
dear all contributors
i am new R user
i want to upgrade my R version from 2.7.1 to 2.8.1
i tried myself, but i could not do it as R is different from other software
could anyone guide me please
warm regard
madan
student
University of Bergen
Windows Live: Keep your life in sync. Ch
On Sun, 11 Jan 2009, Applejus wrote:
I know that using PHP command exec(...) you can call a unix command that
would run an R script, but how does it work on Windows platform?
Exactly the same way.
Basically, I have an R function which takes a file and two strings as
arguments and I need to c
Hi,
I know that using PHP command exec(...) you can call a unix command that
would run an R script, but how does it work on Windows platform?
Basically, I have an R function which takes a file and two strings as
arguments and I need to call this function and pass to it the arguments
automaticall
Professor Ripley,
Thank you very much.
I have used Rscript and it runs fine now.
Your help is very much appreciated.
Best wishes,
Andrew hicks
-Original Message-
From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk]
Sent: 11 January 2009 01:23
To: Andrew Hicks
Cc: r-help@r-project.o
Hi everyone,
Predictive Analytics World's program for Feb 18-19 in San Francisco
(www.predictiveanalyticsworld.com) has grown a bit since my post several
weeks ago, and is looking better than ever. The conference covers today's
commercial deployment of predictive analytics, across industries and
Gabor Grothendieck wrote:
> On Fri, Jan 9, 2009 at 4:28 PM, Wacek Kusnierczyk
> wrote:
>
>> Rau, Roland wrote:
>>
>>> P.S. Any suggestions how to become more proficient with regular
>>> expressions? The O'Reilly book ("Mastering...")? Whenever I tried
>>> anything more complicated than bas
Gabor Grothendieck wrote:
> On Fri, Jan 9, 2009 at 4:20 PM, Wacek Kusnierczyk
>
>
>> right; there's a straightforward fix to my solution that accounts for
>> cases such as '.bashrc':
>>
>> names = c("foo.bar", ".zee")
>> sub("(.+)[.][^.]+$", "\\1", names)
>>
>> you could also use a lookbehind i
On Fri, 9 Jan 2009, Duncan Temple Lang wrote:
Hi Thomas
Rather than getting into the details of libcurl options
which are quite general and very flexible, I thought
it was easier to write an explicit ftpUpload() function
that takes care of the details.
You need a new version of the package (a
On Sun, 11 Jan 2009, Heston Capital wrote:
I am new to R and am trying to import a text file that contains
date/time and various fields. I want to sort this matrix by date and
also perform calculations on the date field (difference between two
dates etc).
The format of the string looks as foll
On Sun, 11 Jan 2009, Bob Green wrote:
Hello,
I am hoping for some advice regarding how I can install the XML package which
I require to run package tm.
Normally I would use the install package option, however, I have to install
the packages to a laptop running XP.
Windows, I presume.
Th
74 matches
Mail list logo