Question: The function names explain their function and should be intuitive, with the possible exception of the summary function, which functions differently for quantitative and categorical
The function names explain their function and should be
intuitive, with the possible exception of the summary function,
which functions differently for quantitative and categorical
variables. For quantitative variables, summary provides the
stnd and rd quartiles and the minimum, median and
maximum value. For a categorical variable, the summary
function counts the number of observations at each factor
level.
The descriptive statistics functions can take data in different
formats, including vectors, lists and dataframes. When
evaluating variables within dataframes, we pass both the
dataframe name and the variable nanle, separated by a $ sign
into the function. For example, to calculate the minimum heart
rate across all time points, we would execute
mindflong$heartrate
Step Create a new code chunk below a header that reads
"Descriptive Statistics".
Step In this code chunk use the summary function on the
occupation variable found in the wide formatted heart rate
data df
IMPORTANT: Knit to HTML after updating your code. Fix
errors before continuing.
How many individuals in df are teachers?
What code would i use to find how many individuals in df ads teachers?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
