Creating a dataframe

I would like to learn how to create a data frame in RStudio specific to my data which looks like this :


I read online what the code should be in general although I do not understand it fully, it looks like this :

# Create the data frame. <- data.frame(


Also I do not know how to execute this data frame after, is it by calling the variable name I stored it in?

In practice, however, you would only ever create data frames by hand this way rarely. R isn't really a data entry system. Usually, data is entered in a spreadsheet and exported to a csv file or it is entered and validated as to form in a database. From one of those types of data stores the data can be imported into a data frame.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.