read_fr | R Documentation |
This function reads data from a tabular file, which is a wrapper of fread. If the tabular file contains both character and numeric columns, it is able to maintain the character or numeric attribute for each column in the returned data frame. In addition, it is able to detect separators automatically.
read_fr(input, header = TRUE, sep = "auto", fill = TRUE, check.names = FALSE)
input |
The file path. |
header |
One of TRUE, FALSE, or "auto". Default is TRUE. Does the first data line contain column names, according to whether every non-empty field on the first data line is type character? If "auto" or TRUE is supplied, any empty column names are given a default name. |
sep |
The separator between columns. Defaults to the character in the set |
fill |
Logical (default is TRUE). If TRUE then in case the rows have unequal length, blank fields are implicitly filled. |
check.names |
default is |
A data frame.
Jianhai Zhang jzhan067@ucr.edu
Dr. Thomas Girke thomas.girke@ucr.edu
Matt Dowle and Arun Srinivasan (2019). data.table: Extension of 'data.frame'. R package version 1.12.8. https://CRAN.R-project.org/package=data.table
sh.tar <- system.file('extdata/shinyApp/data/target_arab.txt', package='spatialHeatmap')
target.sh <- read_fr(sh.tar); target.sh[60:63, ]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.