Can I insert a vector as a row in a data.frame? If so how?
Can I insert a vector as a row in a data.frame ? If so
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I wouldn’t claim this to be the most elegant and pretty solution out there, but it gets the job done.
Notice that each dataframe row carries its own row name, which becomes a problem when inserting new lines. That being said, you can mend this with
row.names(see below).