Questions tagged [stat]

The stat(2) system call on POSIX systems. For statistics, use the statistics instead.

The stat(2) system call is used to retrieve information about a named file (or directory).

Links:

For statistics, use the tag instead.

829 questions
-2
votes
1 answer

How do I add the names of the graphs inside the plot in R?

I built the graph but I try to add the names of the graphs and it does not work. It should look like in the picture, I only have the graphs without the names I would happy if anyone knows which function should be used
-2
votes
1 answer

How large is a disk sector anyway?

So, since ages I have been told that hard disks (I am specifically interested in HDDs and not SSDs) write data in units of 512 bytes, sectors. But when I interrogate the folder with stat . then I get told that blocks are 4096 bytes. How do I find…
ArekBulski
  • 4,520
  • 4
  • 39
  • 61
-2
votes
2 answers

stat() does not work for .so files

I am facing an issue with stat() . stat() does not seem to be working with .so files. It gives the error No such file or directory . Why is this happening? As requested I paste a portion of the code: int main() { char str[300]; struct…
Chung
  • 1
  • 2
-2
votes
1 answer

Plotting a random walk on R

I've run a Gibbs sampler and obtained a sample for $X_1$ and $X_2$. I'm trying to recreate a plot like this one: How do I recreate the walk part on R?
user15077915
-2
votes
1 answer

Is it possible for a cache to have more than 100% miss rate

As the titles suggests, is there any code or program that can have a cache miss rate of 100% or is it even possible for the cache to always never find data in the cache and the cpu has always has to access the main memory for the data, an example of…
Weez Khan
  • 137
  • 1
  • 8
-2
votes
1 answer

EPERM: operation not permitted, stat 'D:\Angular\Project\node_modules\@angular\material\material.d.ts'

ERROR in EPERM: operation not permitted, stat 'D:\Angular\Project\node_modules\@angular\material\material.d.ts' ERROR in ./src/app/app.module.ts Module build failed: Error: EPERM: operation not permitted, stat…
-2
votes
1 answer

How to use stat() to check if commandline argument is a directory?

Im trying to count the types of files inputted into a program. So if you enter echo.c its a C source, echo.h is Header and so on. But if you input a directory, like echo/root it should count as an directory type but right now its counting as a exe…
Alonzo Robbe
  • 465
  • 1
  • 8
  • 23
-2
votes
1 answer

Autocorrelation and Mann-Kendall Trend test for multiple timeseries

I have a very long data frame with 200 stations number. The sample data is given here. Let the sample data bedf .Now I would like to check the auto correlation at lag 1 for each station number. Perform pre-whitening and calculate Mann-kendall…
Cirrus
  • 638
  • 3
  • 13
  • 26
-2
votes
1 answer

Linux block size issue

When I run stat for a file test I got the following output. > [ec2-user@ip-172-31-55-186 ~]$ stat test > File: ‘test’ Size: 538 > Blocks: 8 IO Block: 4096 regular file Device: ca01h/51713d > Inode: 524329 Links: 1 Access:…
Balasekhar Nelli
  • 1,177
  • 4
  • 18
  • 30
-2
votes
1 answer

as.numeric is not working

I am developing code with R and trying to integrate it with PHP. In this code after the as.numeric, values will be output as NA on logs.txt and this N = '"15","20","30","40","50"'; (coming from PHP) # my_rscript.R args <- commandArgs(TRUE) N <-…
parker
  • 39
  • 7
-2
votes
1 answer

Extracting Marker - Every 5 cM

I have following data set. I want to extract marker every 5 cM (fourth column distance in cM) e.g 0, 5, 10, 15 for each chromosome i.e. 1 - 12. where each chromosome has marker at 0 to 100 or even cM distance. So we need to take marker on each…
user3459293
  • 320
  • 1
  • 3
  • 11
-2
votes
1 answer

How can I compare mtimes returned by Perl's stat?

I found some sample scripts "stat" usage below. $source_mtime = (stat($source_file))[9]; $dest_file_mtime = (stat($dest_file))[9]; $script_mtime = (stat($this_file))[9]; if (-e $dest_xml_file) { if ($dest_file_mtime gt $source_mtime) // gt…
Nano HE
  • 9,109
  • 31
  • 97
  • 137
-2
votes
1 answer

c comparing file sizes using fstat issue

My code comparing 2 file sizes seems to behave as if keyfile > sourcefile. Is there something missing from the code below and what can I change? The two files I'm using for testing are 3kb keyfile and 14kb sourcefile, which should activate the last…
youjustreadthis
  • 622
  • 3
  • 9
  • 24
-3
votes
1 answer

Question about common values across columns

I have a set of 20 column, each contains number value. I would like to have a function in excel or in r or somewhere else to extract the shared values among all the columns. Several of the online Venn tools can visualize and list among up to 6…
M. Samir
  • 11
  • 2
-3
votes
1 answer

(closed) stat : always check the return of the function

when I construct a string string s =""; s = rb.rep + a.chemin.substr(rep.size()); //cout << "s:" << s << endl; if (s.empty()){ cerr<<"c++ string is uninitialized"<
1 2 3
55
56