How many hours of total sleep are there for the first animal in the table?
please help me
2 answers
Huh???
sorry
I meant this
here
We'll start really simple, but the next problems will be more challenging.
We can get a column of data from a dataframe by typing the name of the dataframe, then the $ symbol, then the name of the column with no spaces in between. First ask what the column names are using colnames(tab), and then extract one of the columns. The column will be returned as a vector of numbers. Try using autocompletion on the column name using the TAB key on your keyboard. Type the name of the dataframe, then the $ symbol, then the first few letters of the column, then hit TAB. This will autocomplete the name until the end of the name, or until the next character which would determine which column you are referring to. In RStudio, a popup window will show you the possible column names that match the first few letters you wrote.
How many hours of total sleep are there for the first animal in the table?
I meant this
here
We'll start really simple, but the next problems will be more challenging.
We can get a column of data from a dataframe by typing the name of the dataframe, then the $ symbol, then the name of the column with no spaces in between. First ask what the column names are using colnames(tab), and then extract one of the columns. The column will be returned as a vector of numbers. Try using autocompletion on the column name using the TAB key on your keyboard. Type the name of the dataframe, then the $ symbol, then the first few letters of the column, then hit TAB. This will autocomplete the name until the end of the name, or until the next character which would determine which column you are referring to. In RStudio, a popup window will show you the possible column names that match the first few letters you wrote.
How many hours of total sleep are there for the first animal in the table?