data <- read.csv("input.csv")
print(data)
library(readr)
data <- read_csv("input.csv")
df <- read.csv('file_name.csv')
#utils Package
##Output as Data Frame
###Mother Import Function of two functions below
read.table("data.txt", sep = "", col.names = c("x", "y"),
colClasses = c("factor", "NULL"))
read.csv("data.csv", stringAsFactor = F, header = F) #Header and SAF Default True
read.delim("data.txt", stringAsFactor = F, header = F) #Header and SAF Default True
##col.names and colClasses argument could be also passed in read.csv() and read.delim() function
#readr Package
##Output as tbl_df, tbl & data.frame
###Mother Import Function of two functions below
read_delim("data.txt", col_names = c("x", "y"), col_names
delim = "" #delim in readr is same as sep in utils
col_types = "cd") # c = character, d = double, i = integer, l = logical, _ = skip
read_csv("data.csv") #SAF Default FALSE, header Default True
read_tsv("data.txt")
#fread function (data.table Package)
##Output as data.table & data.frame
fread("data.csv", #Default auto determine header, coltypes and sep
drop = 2:4,
select = c("a", "e"))
Code Example |
---|
R :: drop na in r |
R :: sequence r |
R :: show 2 plots together |
R :: r environment variables |
R :: vars() in R |
R :: fill the na data in mean value in r |
R :: R darekn color |
R :: convert first row to header in r |
R :: r sapply syntax |
R :: reduce ggtitle size |
R :: r dot product |
R :: truncate string in r |
R :: how to source all fies from a directory in r |
R :: count r |
R :: detect factors in r |
R :: R view memory size of variables |
R :: r read.csv tab delimited |
R :: negate R |
R :: diff division R |
R :: geom_abline vertical line |
R :: R caTools library with Mandelbrot set |
Rust :: return function rust |
Rust :: rust timestamp |
Rust :: how to create a vector in rust |
Rust :: rust colorful terminal |
Rust :: run or compile rust code |
Rust :: rust enum anonymous struct |
Rust :: armanriazi•rust•collection•hashmap•avoid_of_duplicate |
Rust :: armanriazi•rust•trait•bound |
Rust :: armanriazi•rust•thread•rayon•join•workstealing |