On 2024-09-12 11:08 a.m., Jonathan Dushoff wrote:
In this case, I do think we should look into the consequences of
indeed distinguishing
*
* and
/
from their respective current {1. coerce to complex, 2. use complex arith}
arithmetic.
I'm wondering whether – if this indeed gets o
> In this case, I do think we should look into the consequences of
> indeed distinguishing
>*
>* and
>/
> from their respective current {1. coerce to complex, 2. use complex arith}
> arithmetic.
I'm wondering whether – if this indeed gets opened up – it might also
make sense to cal
Às 08:42 de 12/09/2024, Francesca escreveu:
Dear contributors,
I need to create a set of columns, based on conditions of a dataframe as
follows.
I have managed to do the trick for one column, but I do not seem to find
any good example where the condition is extended to all the dataframe.
I have
Dear Peter,
That was indeed this issue. Thanks for the feedback.
Best regards,
ir. Thierry Onkelinx
Statisticus / Statistician
Vlaamse Overheid / Government of Flanders
INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND
FOREST
Team Biometrie & Kwaliteitszorg / Team Biome
Hi,
To rephrase what you are trying to do, you want a copy of all the cp
columns, in which all the NAs become 1s and any other value becomes a
zero. There is an exception for the first row, where the NAs should
become 0s.
a <- c10Dt
b <- matrix(as.numeric(is.na(a[,-1])), nrow=nrow(a))
b[1,] <- 0
В Thu, 12 Sep 2024 09:42:57 +0200
Francesca пишет:
> c10Dt <- mutate(c10Dt, exit1= ifelse(is.na(cp1) & id!=1, 1, 0))
> So, I create a new variable, called exit1, in which the program
> selects cp1, checks if it is NA, and if it is NA but also the value
> of the column "id" is not 1, then it giv
Dear contributors,
I need to create a set of columns, based on conditions of a dataframe as
follows.
I have managed to do the trick for one column, but I do not seem to find
any good example where the condition is extended to all the dataframe.
I have these dataframe called c10Dt:
id cp1 cp2 cp
7 matches
Mail list logo