KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have some data: transaction <- c(1,2,3); date <- c("2010-01-31","2010-02-28","2010-03-31"); type <- c("debit", "debit", "credit"); amount <- c(-500, -1000.97, 12500.81); oldbalance <- c(5000, 4500, 17000.81) evolution <- data.frame(transaction, date, type, amount, oldbalance, row.names=transaction, stringsAsFactors=FALSE); evolution$date <- as.Date(evolution$date, "%Y-%m-%d"); evolution <- transform(evolution, newbalance = oldbalance + amount); evolution If I enter the command: type <- factor(type) where type is nominal (categorical) variable,then what difference does it make to my data? Thanks
Tags (comma-separated)
Save Edits
Cancel