> directions <- c("North", "East", "South", "South")
> directions.factor <- factor(directions)
> directions.factor
[1] North East South South
Levels: East North South
# Convert character column to factor
data$x <- as.factor(data$x)
Code Example |
---|
R :: create vector in r |
R :: how to change the font of the xlab in plot in r |
R :: percent of missing data in df r |
R :: mean in r |
R :: r extract top values from data frame |
R :: ggplot abline thickness |
R :: how to link world bank data into r |
R :: make gif r |
R :: color code in R |
R :: autoplot confusion matrix |
R :: r remove spaces in column names |
R :: R drop columns |
R :: generate pair with one same variable in r |
R :: or R operator |
R :: to get the proportion of votes for the winning class in r |
R :: R change column to row names |
R :: how to exclude inf in r |
R :: remove the colour name from ggplot |
R :: R gap between date add missing value |
R :: r count dataframe |
Rust :: read file in rusr |
Rust :: remove file rust |
Rust :: rust into string |
Rust :: rust String to &str |
Rust :: run or compile rust code |
Rust :: rust undefined size array |
Rust :: Read a floating point number from stdin |
Rust :: rust•armanriazi•test•mock |
Rust :: armanriazi•rust•thread•spawning |
Rust :: trait in rust |