Search
 
SCRIPT & CODE EXAMPLE
 

R

how to set the first column as row names in r

df2 <- df[,-1]
rownames(df2) <- df[,1]
Comment

PREVIOUS NEXT
Code Example
R :: mode in r 
R :: how to read number of excel sheet in r 
R :: collapse text by group in dataframe r 
R :: tbale() in R 
R :: convert boolean to int R 
R :: multiple intersect r 
R :: merge several data frames in r 
R :: how to eliminate duplicates in a column in r 
R :: pi in r 
R :: select columns in r 
R :: r concatenate data frame 
R :: switch in r 
R :: R get specific character from string 
R :: ggplot2 graph in r 
R :: convert na to 0 in r 
R :: get matrix row name r 
R :: r as.numeric all columns except 
R :: how to tell if a variable is discrete or continuous in r 
R :: how to iterate through a list in r 
R :: r dplyr summarize multiple columns 
R :: or R operator 
R :: count certain number of alphabets in a string r 
R :: How to use group_by inside a function? 
R :: créer un dataframe dans r 
R :: ggplot in R how to show information by hovering 
Rust :: rust dictionary 
Rust :: rust count occurrences of a substring 
Rust :: rust concatenate strings 
Rust :: rust iterate vector backwards 
Rust :: regex in rust 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =