Created
May 11, 2015 15:55
-
-
Save Robinlovelace/56a32cdd7718db1ae48d to your computer and use it in GitHub Desktop.
Create an object to be assigned to the class 'bike' in R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a class for bicycle data | |
wheelsize <- 559 # 26" wheel size, definited by 'bead seat diameter' (BSD) | |
size <- 21 * 25.4 # top tube length, inches converted to mm | |
top_tube_length <- 530 # top tobe length | |
x <- list(ws = wheelsize, s = size, ttl = top_tube_length) | |
class(x) <- "bike" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment