Question: 'data.frame': 3 0 3 obs. of 8 variables: { : [ $ , : i n t , 6 3 , 3 7 , 4
'data.frame': obs. of variables:
dots
$ sex : int dots
$ trestbps: int
$ chol : int dots
$ : int dots...
$ thalach : int dots
$ exang : int dots
$ oldpeak : num dots
Here is what the output means using line and as examples.
The first line of the output tells us about the overall structure: imported the data from an excel spreadsheet as a "data. frame" with observations rows and variables columns
The second line starts with a $ letting you know that it is a variable inside the data.frame remember data set$variable name Then the name of the variable in this case "age". The variable name is followed by a : and then a three letter abbreviation for the variable type, which, for the age variable is "int" for integer. So when the data was imported R looked at the data and saw only whole numbers and applied the integer label. The numbers following the variable type are the first values for that variable.
So now that you know that the output means you can answer the following question.
So now that you know that the output means you can answer the following question.
Which variables need to have their variable types changed
age
sex
trestbps
chol
fbs
thalach
exang
oldpeak
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
