DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR R
convert first row to header in r
header.true <- function(df) { names(df) <- as.character(unlist(df[1,])) df[-1,] }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#convert
#row
#header
ADD COMMENT
Topic
COMMENT
Name
9+7 =
Submit