Please do this operation in "R studio"
Please recall the vectors that we created for the topic "Data
Frames".
name = c('Nikola','Albert', 'Marie','Isaac','Graham','Lise',
'Rosalind')
surname = c('Tesla','Einstein','Curie', 'Newton', 'Bell',
'Meitner', 'Franklin')
gender =
c('Male','Male','Female','Male','Male','Female','Female')
years = c(87,76,75,84,77,89,81)
field_of_study =
c('Engineering','Physics','Chemistry','Physics','Engineering','Physics','Chemistry')
Please check for the function "cut" and use it to create a data
frame named "scientists" which has the values
name surname gender years field_of_study years_bin
1 Nikola Tesla Male 87 Engineering (80,90]
2 Albert Einstein Male 76 Physics (70,80]...