User Tools

Site Tools


r:data_structures

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
r:data_structures [2019/09/19 18:14] – [Understanding the Recycling Rule] hkimscilr:data_structures [2019/09/19 18:16] (current) – [Creating a Factor (Categorical Variable)] hkimscil
Line 263: Line 263:
  
 <code>> f <- factor(wday, c("Mon","Tue","Wed","Thu","Fri")) # c(...) part means "levels" not data  <code>> f <- factor(wday, c("Mon","Tue","Wed","Thu","Fri")) # c(...) part means "levels" not data 
-> f+> f  # note that there is no Fri in the below output.
  [1] Wed Thu Mon Wed Thu Thu Thu Tue Thu Tue  [1] Wed Thu Mon Wed Thu Thu Thu Tue Thu Tue
 Levels: Mon Tue Wed Thu Fri Levels: Mon Tue Wed Thu Fri
r/data_structures.1568884461.txt.gz · Last modified: 2019/09/19 18:14 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki