DIR Return Create A Forum - Home
---------------------------------------------------------
QA_Board
HTML https://qaboard.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Questions for R / RStudio (Spring 2023)
*****************************************************
#Post#: 9--------------------------------------------------
HW1, Problem 3(iii)
DIR By: Statistical Nightmare
Date: January 28, 2023, 12:45 pm
---------------------------------------------------------
For HW1, Problem 3(iii), should we use na.rm=TRUE or
na.rm=FALSE? The prompt says using FALSE won't count the missing
observations, but it apparently gives "NA" in the resulting
table. Just wanted to confirm.
#Post#: 13--------------------------------------------------
Re: HW1, Problem 3(iii)
DIR By: Taeho Kim
Date: January 28, 2023, 5:53 pm
---------------------------------------------------------
na.rm means remove NAs.
So, in this case we need to use "na.rm=TRUE"
so that we can have the result without NAs.
#Post#: 21--------------------------------------------------
Re: HW1, Problem 3(iii)
DIR By: luke
Date: January 30, 2023, 11:22 pm
---------------------------------------------------------
I had a similar issue, but I believe that TRUE matched the
spirit of the question, even though we are told to use FALSE.
*****************************************************
Page 1 of 1