How do u get rid of the suffix "X" and "1" ?[SOLVED] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do u get rid of the suffix "X" and "1" ?[SOLVED]

I am tring to solve the Titanic Survivors challenge in R. My answer is correct but the column suffix "X" and Row number "1" are making it wrong. What should I do to remove them. My attempt: https://code.sololearn.com/cJQlLZUQwnTH/?ref=app

18th Nov 2021, 1:18 PM
Bhaveshsingh Pawar
Bhaveshsingh Pawar - avatar
2 Answers
+ 2
I think they intend us to use tapply() to solve the task. tapply() returns array. In your attempt, you use a data.frame
18th Nov 2021, 4:04 PM
Lisa
Lisa - avatar
0
Lisa THANK YOU VERRY MUCH!!!
18th Nov 2021, 4:25 PM
Bhaveshsingh Pawar
Bhaveshsingh Pawar - avatar