0% found this document useful (0 votes)
14 views1 page

R Data Structures and Functions Guide

The document discusses different data types in R including numeric, integer, logical, and character data. It also covers coercing between data types and factors. Additional topics covered include lubridate for date handling, vectors, matrices, data frames, and lists as basic data structures in R.

Uploaded by

yongzy3
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views1 page

R Data Structures and Functions Guide

The document discusses different data types in R including numeric, integer, logical, and character data. It also covers coercing between data types and factors. Additional topics covered include lubridate for date handling, vectors, matrices, data frames, and lists as basic data structures in R.

Uploaded by

yongzy3
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

class/date/data str

Saturday, 4 March, 2023 9:28 PM

Class: numeric, integers, logical, character (factor: special case)


• test: [Link]()
• coercing: [Link]()
• factor(data, ordered = TRUE, levels = )
• levels(data)

lubridate
• [Link]("2022/11/23", "%Y/%m/%d")
• [Link]() date of today
• seq()

Data Structure
• vector
• matrix (same length, same type)
▪ matrix(1:9, nrow = 3, byrow = TRUE)
▪ dim(matrix1)
▪ select: [row, col]
• data frame (same length, diff type)
▪ [Link]()
▪ select: [row, col] or $
• list (both diff)
▪ select: [[obj]] or $

New Section 1 Page 1

You might also like