Write a R program to create a Dataframes which contain details of 5 employees and display summary of the data
- برمجة R
- 2021-09-04
- adonis77j
الأجوبة
Employees = data.frame(Name=c("Anastasia S","Dima R","Katherine S", "JAMES A","LAURA MARTIN"),
Gender=c("M","M","F","F","M"),
Age=c(23,22,25,26,32),
Designation=c("Clerk","Manager","Exective","CEO","ASSISTANT"),
SSN=c("123-34-2346","123-44-779","556-24-433","123-98-987","679-77-576")
)
print("Summary of the data:")
print(summary(Employees))
Sample Output:
[1] "Summary of the data:"
Name Gender Age Designation SSN
Anastasia S :1 F:2 Min. :22.0 ASSISTANT:1 123-34-2346:1
Dima R :1 M:3 1st Qu.:23.0 CEO :1 123-44-779 :1
JAMES A :1 Median :25.0 Clerk :1 123-98-987 :1
Katherine S :1 Mean :25.6 Exective :1 556-24-433 :1
LAURA MARTIN:1 3rd Qu.:26.0 Manager :1 679-77-576 :1
Max. :32.0أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال
معلومات ذات صلة