Skip to content

Commit 97cce7d

Browse files
committed
Merge pull request sux13#17 from HythamMohamed/master
data.matrix functionality ( i think typo error)
2 parents 945a63a + 1018b82 commit 97cce7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2_RPROG/R Programming Course Notes.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ x
169169
* data frames store tabular data
170170
* special type of list where every list has the same length (can be of different type)
171171
* data frames are usually created through `read.table()` and `read.csv()`
172-
* `data.matrix()` = converts a matrix to data frame
172+
* `data.matrix()` = converts a data frame to matrix.
173173
* `colMeans(matrix)` or `rowMeans(matrix)` = returns means of the columns/rows of a matrix/dataframe in a vector
174174
* `as.numeric(rownames(df))` = returns row indices for rows of a data frame with unnamed rows
175175
* **attributes**
@@ -904,4 +904,4 @@ system.time({
904904

905905
### Miscellaneous
906906
* `unlist(rss)` = converts a list object into data frame/vector
907-
* `ls("package:elasticnet")` = list methods in package
907+
* `ls("package:elasticnet")` = list methods in package

0 commit comments

Comments
 (0)