fread Questions

2

Solved

I have a datafile. #version 460 core out vec4 FragColor; void main() { FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f); } And I am trying to read the contents of it with fread. FILE *fshader; char *f...
Myeloid asked 25/10 at 1:40

7

Solved

I have a large file (3.5G) that I'm trying to import using data.table::fread. It was originally created from an rpt file that was opened as text and saved as a CSV. This has worked fine with smal...
Ornament asked 25/3, 2014 at 18:32

4

Solved

I got several CSV files which contain numbers in the local german style i.e. with a comma as the decimal separator and the point as the thousand separator e.g. 10.380,45. The values in the CSV file...
Factual asked 17/8, 2016 at 14:59

9

Solved

I'm guessing it's fgets, but I can't find the specific syntax. I'm trying to read out (in a string I'm thinking is easier) the last line added to a log file.
Citreous asked 30/6, 2009 at 9:34

2

Solved

Is it possible to specify the data type of numeric columns in fread? Commands like prices = markets[, fread(paste(mkt, 'price.csv')), by = mkt] will fail if price data are integers in one file a...
Blastosphere asked 10/4, 2019 at 10:56

3

How do I make a script there can tell me what version i run when it stored in composer.json? composer.json { "require": { "someLiberyNameHere": "8.3.3.1" } }
Overestimate asked 19/3, 2017 at 15:22

2

I'm trying to analyze data stored in an SQL database (MS SQL server) in R, and on a mac. Typical queries might return a few GB of data, and the entire database is a few TB. So far, I've been using ...
Admissible asked 4/3, 2020 at 23:30

3

Solved

I want to write a php object in a text file. The php object is like that $obj = new stdClass(); $obj->name = "My Name"; $obj->birthdate = "YYYY-MM-DD"; $obj->position = "My position";...
Marston asked 8/9, 2013 at 6:27

3

I have a large file which has to be imported in R. I used fread for this purpose. fread is recognizing blank spaces from numeric fields as NA but it is not recognizing blank spaces from character a...
Anaheim asked 25/6, 2018 at 8:21

2

Solved

I want to create an interface excel-R::data.table. I would like to ask how it is possible to use fread function with clipboard. Following code is working well but I would prefer to use fread instea...
Dara asked 5/11, 2013 at 9:47

2

Solved

I have several different txt files with the same structure. Now I want to read them into R using fread, and then union them into a bigger dataset. ## First put all file names into a list library...
Clothespin asked 16/1, 2014 at 8:0

5

Solved

I understand the differences between fgets() and fgetss() but I don't get the difference between fgets() and fread(), can someone please clarify this subject? Which one is faster? Thanks!
Rickard asked 1/5, 2010 at 21:36

2

I am on a windows machine trying to speed up the read.table step. My files are all .gz. x=paste("gzip -c ",filename,sep="") phi_raw = fread(x) Error in fread(x) : Cannot understand the error ....
Vendible asked 9/6, 2016 at 13:49

4

I'm trying to input a large tab-delimited file (around 2GB) using the fread function in package data.table. However, because it's so large, it doesn't fit completely in memory. I tried to input it ...
Landmark asked 10/11, 2013 at 19:38

2

Solved

Hi first of all I already search on stack and google and found posts such at this one : Quickly reading very large tables as dataframes. While those are helpfull and well answered, I'm looking for...
Somatist asked 31/5, 2019 at 14:15

2

When checking #include <stdio.h> #include <stdlib.h> int main(void) { char c[20]; size_t l; l = fread(c, sizeof c, 1, stdin); if (l != 1) return 1; return c[0] == 42; } with...
Pygmy asked 7/3, 2019 at 17:29

1

Solved

I have a csv file that has windows line endings (CR LF) and is separated by semicolon. The last line in the file is an empty line, i.e. no semicolons contained or any other character. When reading...
Homily asked 11/1, 2019 at 16:21

1

I have installed package "microbenchmark" and then run: library(microbenchmark). Now, I am trying to read a csv file, but getting the error: "fread" function not found. setwd("C:/Data Analytics...
Signpost asked 29/5, 2017 at 3:40

2

Solved

I have a text file to read and deal with with 20000 lines. In the text file I want to read the point coordinates and assign to DirectX to render.Snapshot of Text file I have used std::ifstream, ge...
Reduced asked 22/10, 2018 at 5:27

1

Solved

Normally, to indicate EOF to a program attached to standard input on a Linux terminal, I need to press Ctrl+D once if I just pressed Enter, or twice otherwise. I noticed that the patch command is d...
Bang asked 5/10, 2018 at 22:36

2

Solved

I am getting below error when reading first n rows from a big file(around 50 GB) using fread. Looks like a memory issue. I tried to use nrows=1000 . But no luck. Using linux file ok but could not ...
Colossal asked 25/9, 2018 at 7:39

2

While reading a value from file for an integer, coverity check is giving following error Calling function "fread" taints argument "readval" //coverity note: Calling function "fread" taints argume...
Myotome asked 16/7, 2014 at 4:29

5

Solved

I'm using R to visualize some data all of which is in .txt format. There are a few hundred files in a directory and I want to load it all into one table, in one shot. Any help? EDIT: List...
Viburnum asked 3/8, 2010 at 15:8

0

I am trying to read a huge dataset (> 25GB) in R. It doesn't fit in my PCs memory. But I think maybe it would be possible to work with the data, if it were in compressed (RData) format. As part of ...
Polypeptide asked 22/11, 2017 at 4:43

1

My application sends iOS notification. I use fread() to check if there was an error in the response from the Apple server. However, the code gets stuck in a loop or just keeps on loading. $apnsHost...
Otha asked 20/2, 2017 at 11:30

© 2022 - 2024 — McMap. All rights reserved.