Hi
Maybe it is time to read what I wrote below. And also documentation.
from cbind
vectors or matrices. These can be given as named arguments. Other R objects
will be coerced as appropriate: see sections 'Details' and 'Value'. (For the
data.frame method of cbind these can be further arguments
Hi R Users,
My name is Matt, and I'm a part of Plotly http://plot.ly. We recently
released an R plotting library http://plot.ly/api/r for making
publication-quality graphs online. We wanted to let the folks on this list
know.
A basic summary:
- Make publication-quality, online plots with a GUI
Yes
Why difference in the result? rbind and cbind function are something
wrong?
Or
I, am something wrong?
you are something wrong.
see below
From: Lee Marine [mailto:marine1...@gmail.com]
Sent: Friday, January 24, 2014 9:04 AM
To: PIKAL Petr
Subject: Re: [R] My problem with R
Sorry,
subset.data.frame() does not have an na.rm argument!
-pd
On 23 Jan 2014, at 00:58 , Jeff Johnson mrjeffto...@gmail.com wrote:
I have a dataset mydf with a field EMAIL_ADDRESS. When importing, I
specified:
mydf - read.csv(file = extract, header = TRUE, stringsAsFactors = FALSE,
As a supplement to Bens reply: The pbkrtest package allows calculation of
degrees of freedom by the Kenward-Roger method; something like
library(lme4)
model1 - lmer(value~group + (1|animal), data=bip)
summary(model1)
anova(model1)
model0 - update(model1, .~.-group)
anova(model1, model0)
this is an anomonous function definition and .week is just the name of the
parameter I chose to use. As with any function definition, you can name the
parameters any way you want. In this case I have used the '.' to start the
name just to make it apparent that it is a parameter; personal
On 24/01/2014 02:09, Xing Zhao wrote:
Hi everyone,
R documents says the safe prediction is implemented, when basis
functions are used, such as poly(), bs(), ns()
This works for univariate basis, but fails in my bivariate polynomial setting.
Can anyone explain the reason?
Because there is a
Hi Allison
I had a quick look at the site and it appears that the compiled versions and
they are for operating systems with R installed to ver 2.15
However there is a zip file for all or individual R snippets etc.
If you want to download them and unzip the individual/all chapters and work
from
In a book project using knitr, I'm creating a large number of variable
and objects in chunks within
chapters. I'd like to find a way of keeping track of all of those for
each chapter, and clean up
at the end of each chapter, without having to manually list their names
as shown below.
The
I'm not sure what exactly you want to remove in the cleanup step, but
to list the objects assigned in a particular chapter can't you just
put
prev.vars - ls()
at the beginning of the chapter and
vars.this.chapter - setdiff(ls(), prev.vars)
at the end?
Best,
Ista
On Fri, Jan 24, 2014 at 9:14
HI,
I am sorry. I didn't test it properly.
Check if this works. (But, you already got Hervé's solution).
For ##2
eyaSpl2 - rep(#,sum(length(eyaSpl),length(CDS1[,1]))) ##as in previous code
indx - CDS1[,1]+rep(seq(0,length(CDS1[,1]),by=2),each=2)[-c(1,40)]
eyaSpl2[-indx] - eyaSpl
###testing
Hi again,
I need to read below xlsx file correctly (available here:
http://snk.to/f-ch3exae5), and used following code (say, file is saved in
F: drive)
library(gdata)
read.xls(f:/Book1.xlsx, 1, header = F)
V1
1 -0.419547704894512
2 -[$Â¥-411]0.42
However please notice
Hello,
Cell F7 has a formula, =F4, and when I open the file in excel, I get
-¥0.42, which shouldn't read properly in R.
The problem seems to be in the file, not in read.xls.
Hope this helps,
Rui Barradas
Em 24-01-2014 19:22, Christofer Bogaso escreveu:
Hi again,
I need to read below xlsx
As Jeff Newmiller and Duncon Murdoch indicated, you can't modify the
contents of one part of a loaded package on the fly, and have the other
parts of the loaded package recognize the modifications. It's just not set
up that way. You have to repeat the build and install steps.
However, the
Hi Rui,
Thanks for your reply.
However why you said, 'shouldn't read properly in R'?
Basically I was looking for some way so that I would get -0.419547704894512
value in R against cell F4 F7. Because F7 is linked with F4.
Ofcourse I can open Excel file then format that cell accordingly.
^Hello,
Inline.
Em 24-01-2014 20:49, Christofer Bogaso escreveu:
Hi Rui,
Thanks for your reply.
However why you said, 'shouldn't read properly in R'?
I've said this because I don't know if a cell with a formula can be read
in R.
Also, because when I've opened it in excel, there was some
Hi,
I am getting this:
read.xls(Book1.xlsx,1,header=F)
# V1
#1 -0.4195477
#2 -0.4195477
sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-unknown-linux-gnu (64-bit)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other
On 24/01/14 21:30, PIKAL Petr wrote:
SNIP
Why difference in the result? rbind and cbind function are something
wrong?
Or
I, am something wrong?
you are something wrong.
Fortune?
cheers,
Rolf
__
R-help@r-project.org mailing list
Hi,
I don't know that it is a problem in R reading the file per se. It is more of
an issue, as far as I can see, that read.xls() is not written to deal with some
aspects of cell formatting of certain types. In this case, the cell is
formatted using a financial format with Japanese Yen. I did
This might also be titled, How do I use R as a streaming process?
I would like to use R as a streaming processor, but it seems to have trouble
capturing all the input.
Can someone explain why this script skips the first few lines of input?
Is this a bug in R or some interaction with line
Hi all!
I am currently working on a paper where I conduct a surface analysis based on
subordinate and supervisor responses.
So far I have been using the RSA package and it works great.
However, because several subordinates share a common supervisor, the RSA object
that I need to estimate needs
Bill,
Thanks for your answer.
With your advise I was able to download rjags, logspline. Especially your
tip install dependencies was extremely helpful AND certainly made it work.
Could I outline in this respect the following, please?
I also was able to install Xcode, because
The package
Dear all:
I want to predict a presence/absence vector using a presence/absence matrix of
events. What library can do this in R?
Many thanks
--
Daniel Patón Domínguez
Numerical Ecology. Ecology Unit
Department of Plant Biology,
Dear R-Help readers,
I am writing to ask about some behavior by stats::reshape() that surprised
me. In the example below, I expected the values of variables R and L in
data.frame test to be the reverse of what they are - ie I expected that
test$R = seq(1:29, by =2) and test$L = seq(2:30, by = 2).
The library of packages that installs with R includes the stats
package, in the stats package is the glm function for fitting
generalized linear models. Using glm with a binomial family will fit
a logistic regression which can be used as you describe.
If you really feel the need to use an
On 1/24/14 10:44 PM, Rolf Turner wrote:
On 24/01/14 21:30, PIKAL Petr wrote:
SNIP
Why difference in the result? rbind and cbind function are something
wrong?
Or
I, am something wrong?
you are something wrong.
Fortune?
No.
Göran
cheers,
Rolf
On 25/01/14 00:41, Daniel Patón Domínguez wrote:
Dear all:
I want to predict a presence/absence vector using a presence/absence matrix of
events. What library can do this in R?
I will answer your question only if you learn to say ***package*** and
NOT library. The library() function loads
Rolf et.al:
Actually, as I think the query indicates a wholly insufficient
statistical background, this question probably should go to SO
(stats.stackexchange.com) rather than here. Even if he is told the
package (or function in this case) , he is unlikely to be able to use
it properly.
Cheers,
Hi,
You can change varying1 to:
varying1 = list(seq(3,ncol(data1),2), seq(4,ncol(data1),2))#and then try it on
your code
test = reshape(
data = data1,
direction = long,
idvar = c(Participant,Treatment),
v.names = c(R,L),
times= seq(2, 30, by = 2),
Another way would be to change the colnames()
colnames(data1)[grep(min,colnames(data1))] -
gsub((\\d+)\\D+(\\w+)$,\\2_\\1,colnames(data1)[grep(min,colnames(data1))])
varying1 - colnames(data1)[3:32]
test2 - reshape(
data = data1,
direction = long,
idvar =
Hello everyone,
I have a large vehicle trajectory data of which following is a small part:
vehicle
frame
globalx
class
velocity
31 matches
Mail list logo