ithin the single variable.
e.g. dat1$var1[6:10]<-dat1$var[5:9]
A.K.
- Original Message -
From: Ernie Tedeschi
To: r-help@r-project.org
Cc:
Sent: Saturday, July 7, 2012 11:20 PM
Subject: [R] Notation for previous observation in a data frame
I've created a data frame in R, but
Hi Ernie,
I'll use the built in mtcars dataset for demonstrative purposes.
You have some condition, which can be used to create an index
## show data frame
mtcars
## create index based on your condition
i <- which(mtcars$carb == 1)
## set those rows of mtcars in your index
## to the index - 1
mt
I've created a data frame in R, but in order to clean up some of the data,
I need to set certain variable observations equal to the value of their
previous observation (it would be conditional, but that part's less
important right now). In Stata, I would simply set var = var[_n-1] in those
cases. W
Hi Silvano,
Your function is not part of the standard R installation. After some
googling I found out, but next time:
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
The betareg package provides manua
Hi,
what's mean "/" in command:
betareg(inf~Grupo/Sexo, data=dados)
it's a effect nested?
--
Silvano Cesar da Costa
Departamento de Estatística
Universidade Estadual de Londrina
Fone: 3371-4346
__
R-help@r-project
Thank you Rolf,
>> Using the analysis of co-variance example from MASS (fourth edition, p
>> 142), what is the correct notation for the formula "Gas, ~ Insul/Temp
> There shouldn't be a comma after ``Gas'' in that formula.
>> - 1"? Obviously, if we fit it as two separate models (as in the
>> exa
On 20/07/11 07:24, Carson Farmer wrote:
Dear list, I am currently writing up some of my R models in a more
formal sense for a paper, and I am having trouble with the notation.
Although this isn't really an 'R' question, it should help me to
understand a bit better what I am actually doing when fi
Dear list, I am currently writing up some of my R models in a more
formal sense for a paper, and I am having trouble with the notation.
Although this isn't really an 'R' question, it should help me to
understand a bit better what I am actually doing when fitting my
models!
Using the analysis of co
8 matches
Mail list logo