On Tue, Apr 14, 2015 at 10:09 PM, John Sorkin
wrote:
> I suggest that you investigate installing RStudio server on the Linux
> Box. If you do this, you can logon to RStudio (on the Linux server), and
> it will look exactly like RStudio running on a windows box. You may need
> some help configurin
A wild guess is that you have not converted your newdate column into a time
metric such as Date or POSIXt. Our responses can be ever so much more helpful
if you follow the Posting Guide (mentioned in the footer), e.g. posting using
plain text so the code gets through the mailing list successfull
New to R. Having trouble with the xaxis in this code. The tick marks are
crazy and the labels repeat. Any suggestions?
par(mar=c(5,5,5,5))
plot(LPB_PPT_R$newdate,LPB_PPT_R$Rain_cm,pch=0,type="l",col="black",yaxt="n",ylim=c(0,8),ylab="")
axis(side=2, at=c(0,2,4,6,8))
mtext("Precipitation (cm)", si
Hello I've been trying to produce a general error logging/handling
framework that I can live with. I'll post the code first:
example.R
---
good_main <- function() {
for (i in 1:2) {
bad_function()
}
}
bad_main <- function() {
for (i in 1:2) {
tr
Hi Michael,
> On 14 Apr 2015, at 18:59, Michael Haenlein wrote:
>
> Dear all,
>
> I am used to running R locally on my Windows-based PC. Since some of my
> computations are taking a lot of time I am now trying to move to a remote R
> session on a LINUX server but I am having trouble to getting
I looked around online but could not figure out how to build decision trees and
specify probabilities at each node along with payoffs. Can you please help ?
From: mehmet.su...@gmail.com on behalf of Suzen,
Mehmet
Sent: Tuesday, April 14, 2015 5:42 PM
To
Yes.
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducib
Thanks so much. I was struggling to install caret package on my upgraded R.
It was failing to compile lme4 and threw up an error about llapack and lbas.
I never realized that I needed to install lbas(I already had llapack)
through SPM. Once I did that, I could install caret using install.packages
Hello,
I try to open a text file test.txt with the content
* a b d
* z u i h hh
* h bh kk
so that I get a list with each line as a vector with the letters as
elements of the the vector.
My approach ...
test <- scan ("test.txt", what="character", sep="\n")
Read 3 items
> test.list <- lapply (tes
Hi jpm miao,
What sort of "Excel" graphs do you want to produce? There are a few
varieties, you know.
Jim
On Wed, Apr 15, 2015 at 1:54 PM, jpm miao wrote:
> Hi,
>
>I understand that there're many great graphic packages in R (e.g.,
> ggplot2) . Nevertheless, my office uses Excel extensively
Hi,
I understand that there're many great graphic packages in R (e.g.,
ggplot2) . Nevertheless, my office uses Excel extensively. Is there any
package in R that produces Excel graphs by R codes? Thanks!
[[alternative HTML version deleted]]
_
On Wed, 15 Apr 2015 at 02:49 Monica Pisica wrote:
> Hi Mike,
>
>
> Very interesting. The plot itself on the computer that does not plot -
> still does not plot - no surprise there. But the command with useRaster =
> FALSE actually plots the raster. So that means it is something wrong with
> the r
Do you have specific example that you have tried to implement in R?
Can you post your codes too?
There are high quality package BCEA and BayesTree, that could be helpful;
http://cran.r-project.org/web/packages/BCEA/index.html
http://cran.r-project.org/web/packages/BayesTree/index.html
___
I didn't try this but there is an experimental package from Dr. Shotwell.
http://cran.r-project.org/web/packages/sas7bdat/index.html
if it can read, maybe you can modify to write as well?
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, s
In the same way they would be different in any programming language. See R FAQ
7.31.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
IMDB. I guess I'll just have to open it as any text file.
On Tue, Apr 14, 2015 at 4:48 PM, Sarah Goslee wrote:
> What produced this file?
>
> On Tue, Apr 14, 2015 at 4:40 PM, Dimitri Liakhovitski
> wrote:
>> Is it possible to read a LIST file into R? Any package?
>>
>> I've done some googling, b
Try Googling for
".list" file extension
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Tue, Apr 14, 2015 at 1:40 PM, Dimitri Liakhovitski <
dimitri.liakhovit...@gmail.com> wrote:
> Is it possible to read a LIST file into R? Any package?
>
> I've done some googling, but there are just too man
What produced this file?
On Tue, Apr 14, 2015 at 4:40 PM, Dimitri Liakhovitski
wrote:
> Is it possible to read a LIST file into R? Any package?
>
> I've done some googling, but there are just too many hits for a regular
> 'list'.
> Appreciate any pointers!
>
> --
> Dimitri Liakhovitski
>
--
Sa
Is it possible to read a LIST file into R? Any package?
I've done some googling, but there are just too many hits for a regular 'list'.
Appreciate any pointers!
--
Dimitri Liakhovitski
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, s
Hi David,
Thanks. That was enlightening.
Whoop.
V
On Tue, Apr 14, 2015 at 3:53 PM, David L Carlson wrote:
> Try all.equal(df[1,3], df[2,3])
>
> This relates to how decimal numbers are stored in computers. It is not an
> R only issue, but it is described in the R-FAQ:
>
> From the R-FAQ - htt
I've not seen much and most of the responses relate to classification trees and
not clinical decision trees. See this post:
https://stat.ethz.ch/pipermail/r-help/2012-July/318597.html . I was unable to
run arvore on a recent version of R.
-Original Message-
From: R-help [mailto:r-help
I suggest that you investigate installing RStudio server on the Linux
Box. If you do this, you can logon to RStudio (on the Linux server), and
it will look exactly like RStudio running on a windows box. You may need
some help configuring the Linux box to allow access to port 8787, which
is the def
It is not vectorized, but it is simple:
EXPANDED <- unlist(mapply(":", START, END))
-
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] O
Try all.equal(df[1,3], df[2,3])
This relates to how decimal numbers are stored in computers. It is not an R
only issue, but it is described in the R-FAQ:
>From the R-FAQ - http://cran.r-project.org/doc/FAQ/R-FAQ.html
7.31 Why doesn't R think these numbers are equal?
The only numbers that can b
I have a data frame of dim 3x600. There are pairs of rows which have the
exact same value in column 3.
head(df)
POP1 POP2 ABSDIFF
L0005.01 0.98484848 0.688118812 0.2967297
L0005.03 0.01515152 0.311881188 0.2967297
L0008.02 0.97727273 0.004424779 0.9728479
L0008.04 0.0227
R 3.1.3
OS X
Colleagues
I have data of this sort:
START <- c(1, 2, 3, 4, 8, 14, 15, 118, 118, 119, 202, 202, 203, 204)
END <- c(1, 2, 3, 6, 13, 14, 117, 118, 118, 201, 202, 202, 203, 204)
I would like to create a vector that looks like this:
START.to.END<-
c(1:1
You should investigate using the parallel package. You have to have R installed
on the Linux machine along with any contributed packages you use, but you can
delegate tasks to it from within an Rgui or RStudio session running on your
Windows box. There are even tutorials online that step you thr
I am considering using RUSBoost (https://github.com/SteveOhh/RUSBoost) and
was wondering if anyone has used this package, and could give me some
insight and help. The help would be on more of the machine learning side,
I just have a few questions about implementation.
[[alternative HTML v
Don't use html formatted emails and always copy the list on your replies.
For example?
rainstats <- function(data, months=3) {
if (! months %in% c(1, 2, 3, 4, 6, 12)) stop("Months must divide into 12!")
period <- 12/months
grps <- rep(1:period, each=months)
Group <- grps[rainf
On Tue, Apr 14, 2015 at 11:57 AM, Michael Haenlein
wrote:
> Dear all,
>
>
>
>
> (3) Can I open several instances of R in parallel? On my PC I sometimes
> have 2-3 windows open in parallel that work on different calculations to
> save time. Not sure to which extent this is possible on LINUX.
>
0.003725088 is the mean square error.
2015-04-14 13:44 GMT-04:00 Michael Dewey :
> See in-line
>
>
> On 14/04/2015 18:23, li li wrote:
>
>> Hi all,
>>I have following data. When I perform an anova, the residual sum of
>> square returns to be zero.
>> But this is wrong, since we can hand c
See in-line
On 14/04/2015 18:23, li li wrote:
Hi all,
I have following data. When I perform an anova, the residual sum of
square returns to be zero.
But this is wrong, since we can hand calculate the RSS to be around 0.0308.
Did anyone come across the same problem before? Any suggestions?
It is a printing problem - the default number of digits in print.summary.aov
is max(3L, getOption("digits") - 3L). Set options(digits=7) instead of
your current 6 (?) or try print(summary(fit.Y), digits=7) to see more
digits.
Bill Dunlap
TIBCO Software
wdunlap tibco.com
On Tue, Apr 14, 2015 at
Li Li -
I belive it's a rounding error -- try setting
options(digits=8)
before displaying the output:
summary(fit.Y)
Df Sum Sq Mean Sq F value Pr(>F)
sample.Y 3 2203 734 190706 <2e-16 ***
Residuals8 0 0
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01
?
Hi All,
I was wondering if R has a provision of performing cost-effectiveness analyses
using decision trees and markov models. And if anyone has used it before.
Thanks!
Ashima
[[alternative HTML version deleted]]
__
R-help@r-project.org
?Hi, I was wondering if R has a provision of performing cost-effectiveness
analyses using decision trees and markov models.
Thanks!
Ashima
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more,
Hi all,
I have following data. When I perform an anova, the residual sum of
square returns to be zero.
But this is wrong, since we can hand calculate the RSS to be around 0.0308.
Did anyone come across the same problem before? Any suggestions?
Thanks.
Hanna
> ydata
Y sample.Y
1
I know R can read / write SAS data in xpt format and can also read SAS data
in sas7bdat format.
However, I am wondering if I can write sas7bdat with R.
thanks.
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNS
On Tue, Apr 14, 2015 at 7:09 PM, Sarah Goslee wrote:
>
> Hi Michael,
>
> On Tue, Apr 14, 2015 at 12:57 PM, Michael Haenlein
> wrote:
> > Dear all,
> >
> > I am used to running R locally on my Windows-based PC. Since some of my
> > computations are taking a lot of time I am now trying to move to a
Hi Michael,
On Tue, Apr 14, 2015 at 12:57 PM, Michael Haenlein
wrote:
> Dear all,
>
> I am used to running R locally on my Windows-based PC. Since some of my
> computations are taking a lot of time I am now trying to move to a remote R
> session on a LINUX server but I am having trouble to gettin
Dear all,
I am used to running R locally on my Windows-based PC. Since some of my
computations are taking a lot of time I am now trying to move to a remote R
session on a LINUX server but I am having trouble to getting things work.
I am able to access the LINUX server using PuTTY and SSH. Once I
Hi Mike,
Very interesting. The plot itself on the computer that does not plot - still
does not plot - no surprise there. But the command with useRaster = FALSE
actually plots the raster. So that means it is something wrong with the raster
package? Did i forget to install some dependency, altho
You ask quite a lot of questions, I have given some hints about your
first example inline
On 14/04/2015 09:07, Joachim Audenaert wrote:
Hello all,
I am writing a script for statistical comparison of means. I'm doing many
field trials with plants, where we have to compare the efficacy of
differ
Sounds like you need to do some of your own "homework"... In
particular, you need to learn how to write your own functions in R to
carry out such tasks.
There are many good tutorials on how to program in R, e.g. the Intro
to R that ships with R and many others that can be found by searching.
Choos
On Wed, 15 Apr 2015 at 01:16 Michael Sumner wrote:
> On Wed, 15 Apr 2015 at 00:50 Monica Pisica wrote:
>
>>
>> Hi,
>>
>>
>>
>> I have the current version of R installed on 2 different Windows
>> computers. On one i can plot using the plot function a raster in geotif
>> format, on the other it pl
On Wed, 15 Apr 2015 at 00:50 Monica Pisica wrote:
>
> Hi,
>
>
>
> I have the current version of R installed on 2 different Windows
> computers. On one i can plot using the plot function a raster in geotif
> format, on the other it plots only the axis, an empty color bar and no
> raster what so ev
Hi,
I have the current version of R installed on 2 different Windows computers. On
one i can plot using the plot function a raster in geotif format, on the other
it plots only the axis, an empty color bar and no raster what so ever without
generating any errors or warnings. So i suspect som
I'm not sure I completely understand your authentication needs, but
perhaps the RCurl package could be of some use to you.
Rob
On 4/13/2015 1:26 AM, Luca Cerone wrote:
Thanks Jeff,
and OK I'll move next questions on the topic to the devel list :)
I was hoping there were packages that already
Hi,
I'm trying to get cross validation error for a simple linear regression
model, using function CVlm from package DAAG. I would need also the MSE
errors for each fold, because I want to test the one standard error rule.
My code is
a=c(0.0056, 0.0088, 0.0148, 0.0247, 0.0392, 0.0556, 0.0632, 0.06
Hello all,
I am writing a script for statistical comparison of means. I'm doing many
field trials with plants, where we have to compare the efficacy of
different treatments on, different groups of plants. Therefore I would
like to automate this script so it can be used for different datasets of
Hi all,
If I run the following command in hive shell, I can get a compressed
output(e.g. 00_0.gz) in HDFS because I already changed Hadoop and Hive
configuration files to achieve this.
*command:*
insert overwrite directory '/testdata' select * from tbl;
However, if I run the same command usi
Perhaps you should learn to use Google? It came up easily there for me. There
is also an R package called "sos" that can help you find capabilities among the
thousands of contributed packages on CRAN.
---
Jeff Newmiller
R Studio loads R if it can find it. Since you have installed R, the error
message means that R Studio can't find it or is not sure which version to use.
The part of the message that says "please select the version of R to use"
should give you a dialog box to use to navigate to the directory that
But if the answer to the question "Does R load on its own?" is "no" then this
probably is the right place to ask for help. Of course, I would probably just
suggest re-installing R, but someone else here might have better answers.
---
Apologies for cross-posting
There are 4 remaining seats on the following course:
Course: Data exploration, regression, GLM & GAM with introduction to R
When: 4-8 May 2015
Where: University of Palermo, Italy
Course flyer: http://www.highstat.com/Courses/Flyer2015_05Palermo.pdf
URL: http://www.h
You probably should go to the RStudio help/blog rather than here. This is not
an RStudio list and the expertise is at the RStudoi site.
Does R load on its own?
What OS are you using?
John Kane
Kingston ON Canada
> -Original Message-
> From: sojoodmlk1...@gmail.com
> Sent: Tue, 14 Apr
I think it would be easier to keep track of what you're doing, if you save
the assignment to the very end of your for() loop. For example ...
# create an empty matrix to be used as a template
Mtemplate <- matrix(data=NA, nrow=13, ncol=3,
dimnames=list(c(10,20,30,35,40,50,60,70,80,90,100,120,9
Hi Jean,
Thanks for the help!
How can I compute monthly total of rainfall?
I want to compute both monthly total of rainfall and number of raindays. In
below function month_tot is a table and I want to some month. default is 3
months. The loop for quarter is not working and I am wondering why it i
If you want to calculate the number of days having greater than a certain
threshold of rain within a range of months, a function like this might
serve your needs.
raindays <- function(data, monStart=1, monEnd=3, threshold=0.85) {
with(data, {
selRows <- Month >= monStart & Month <= monEnd &
Hi group,
I am automatically creating several matrices to store results from different
analyses on vectors of different lengths. The matrices are named according to
each vector, so I can trace back results. I am using the following commands,
which give me an error. My idea is to populate th
Dear R Users,
Is there any package in R that use Markov Regime switching model to forecast
?
I need to do one-step ahead forecast using a Markov Regime switching model.
I have one predictor variable that switches across 2 regimes. I had a
look, but I couldn't find a package in R which use a Mar
Dear All,
Thank You for the quick responses.
Managed to solve my problem through:
http://www.faculty.biol.ttu.edu/strauss/multivar/R/SamplePCABootstrap.R.txt
or
http://r.789695.n4.nabble.com/bootstrapped-eigenvector-method-following-prcomp-td877655.html
Used the first one however, code is too long
I installed R and then R studio but it doesn't open every time i try to
open it it gives me this message "Rstudio requires an existing
installation of R in order to work. please select the version of R to use ".
i'm using R i386 3.1.3 and downloaded RStudio 0.98.1103 - Windows
XP/Vista/7/8. do you
> Hi, I have a quesite on meta-analysis with 'metafor'.
> I would like to calculate the standardized mean difference (SMD), as
> Hedges' g, in pre-post design studies.
> I have data on baseline (sample size, mean and SD in both the
> experimental
> and the control group) and at end of treatment (sa
Comment below
On 13/04/2015 20:46, Antonello Preti wrote:
Hi, this is another quesite related to the use of 'metafor' for calculation
of standardized mean change in pre-post design studies.
Essentially, my aim is to compare different method to arrive at the same
conclusion: Does the treatment wo
I want to compute monthly summaries from daily data. I want to choose which
month to start and how many months to total over. Default could be to
start in January and total over 3 months. For the number of rain days the
default threshold is 0.85mm.
I tried to make a function which sum all months
66 matches
Mail list logo