r/Rlanguage•
panclocks919

Error in Data Frames

Greetings,

I am looking to collect data with a data frame. I am looking to create rows that represent the individuals and columns that represent the data variables. I have a set of six people, and I have each person's height (in inches) and weight (in pounds). I have also tabulated each person's gender, and the components of the gender vector have been turned into categories (M and F Levels) by using the factor ( ) function. When I finally begin to use the data.frame( ) function to work with the vectors to create a data frame, I am stopped w an Error in the console.

Any tips to move past this lesson by turning it into a matrix would be amazing. Please refer to the photo attached. Thank you in advance!

https://preview.redd.it/elbtzo59z9hf1.jpg?width=1244&format=pjpg&auto=webp&s=52c3431c2464d16447618cbdc027ed1d93d031be

Posted Aug 5, 2025, 10:14 PM UTC

17
Loading comments…