Great, thanks a lot, very much appreciated. It is working now.MAgojam wrote:Hey @u3517520,
check arguments and parentheses ...
Look at the Rj script of the attached file, maybe it helps you. Cheers,
Maurizio
Search found 4 matches
- Fri Mar 04, 2022 5:36 am
- Forum: Statistics
- Topic: Regarding R version of "ifmiss"
- Replies: 6
- Views: 9639
Re: Regarding R version of "ifmiss"
- Thu Mar 03, 2022 6:57 am
- Forum: Statistics
- Topic: Regarding R version of "ifmiss"
- Replies: 6
- Views: 9639
Re: Regarding R version of "ifmiss"
so we could rewrite:
IFMISS(P_nonloss_book, NA,"Book-Negative")
as:
ifelse(is.na(data$P_nonloss_book), NA, "Book-Negative")
cheers
Thank you very much!
I have been making some progress, but encountered an error below.
So what I am trying to do is
If P_gain_book_1 OR P_nongain_book_4 has a ...
IFMISS(P_nonloss_book, NA,"Book-Negative")
as:
ifelse(is.na(data$P_nonloss_book), NA, "Book-Negative")
cheers
Thank you very much!
I have been making some progress, but encountered an error below.
So what I am trying to do is
If P_gain_book_1 OR P_nongain_book_4 has a ...
- Wed Mar 02, 2022 7:07 am
- Forum: Statistics
- Topic: Regarding R version of "ifmiss"
- Replies: 6
- Views: 9639
Re: Regarding R version of "ifmiss"
in R, if you wanted an equivalent to
IFMISS(columnName, ..., ...)
i'd suggest something like:
ifelse(is.na(data$columnName), ..., ...)
cheers
Great, thank you.
Sorry I am unfamiliar ifelse function
So the Jamovi computed variable is IFMISS(P_gain_book, IFMISS(N_nongain_book, IFMISS(N_loss ...
IFMISS(columnName, ..., ...)
i'd suggest something like:
ifelse(is.na(data$columnName), ..., ...)
cheers
Great, thank you.
Sorry I am unfamiliar ifelse function
So the Jamovi computed variable is IFMISS(P_gain_book, IFMISS(N_nongain_book, IFMISS(N_loss ...
- Wed Mar 02, 2022 6:13 am
- Forum: Statistics
- Topic: Regarding R version of "ifmiss"
- Replies: 6
- Views: 9639
Regarding R version of "ifmiss"
First of all, not sure if this is the right forum to post about this, feel free to remove/move to another subforum.
I am trying to move jmv syntax to R.
Sorry this question may be basic, are there R code for the below "ifmiss" function? I am trying to compute such variables in R but couldn't find ...
I am trying to move jmv syntax to R.
Sorry this question may be basic, are there R code for the below "ifmiss" function? I am trying to compute such variables in R but couldn't find ...