You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file that reads Ok, but slowly with read.table is output from a PK/PD program, truncated. Quite sure I missed some settings.
# Sample file can be downloaded from
# http://www.menne-biomed.de/uni/nonmem.txt
# This is output from NONMEM (PK/PD program)
# The full file is about 10000 lines and
# needs 60 seconds on my computer to load with read.table
str(read.table("nonmem.txt", header=TRUE)) # Fine, slow for large
library(readr)
str(read_table("nonmem.txt")) # Fast, but not correct
str(read_table("nonmem.txt", col_names=FALSE ,skip=1)) # Fast, no column names
library(data.table)
str(fread("nonmem.txt")) # error
str(fread("nonmem.txt"),skip=1, header=FALSE ) # error
sessionInfo()
R version 3.1.3 (2015-03-09)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252
[3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C
[5] LC_TIME=German_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] data.table_1.9.5 readr_0.1.0.9000 testthat_0.9.1.9001
loaded via a namespace (and not attached):
[1] chron_2.3-45 fortunes_1.5-2 Rcpp_0.11.5.1 tools_3.1.3
The text was updated successfully, but these errors were encountered:
The file that reads Ok, but slowly with read.table is output from a PK/PD program, truncated. Quite sure I missed some settings.
The text was updated successfully, but these errors were encountered: