Questions tagged [data-files]

209 questions
0
votes
1 answer

R Roxygen2 Warning: Variables with usage in documentation object but not in code

I am trying to make an R package that contains data files. One data file, mydata.Rd, is annotated with the following Roxygen2 code: #' My Title #' @docType data #' @keywords datasets #' @references my name #' (\\href{https://doi.org/etc.}) #'…
generic
  • 302
  • 1
  • 3
  • 14
0
votes
1 answer

Write in and read from the data files

I have an array as shown below, I want to write it's values in a data file as shown in below, Then read it's values again in another array from the same data file in the same model, So how to read it again from the same data file to same model file…
MO MO MA
  • 49
  • 5
0
votes
3 answers

How can I read numbers as integers while also reading in names as strings from a data file?

Here's the code I wrote to put the names and numbers into a file: def main(): num_players = int(input("How many players are there?")) golf = open("golf.txt", 'w') for i in range(num_players): player_name = str(input("What is the…
0
votes
0 answers

Monitor multiple secondary data files in SQL server - Datadog

I have a server which has 24 secondary data files in SQL server DB. Can you please let me know how can i monitor these files without having to create 24 monitors ?
peewhy
  • 1
  • 1
0
votes
2 answers

How do I write a function that reads a .data file and returns an np array in python?

I have a data file that can be downloaded from here: https://archive.ics.uci.edu/ml/machine-learning-databases/housing/housing.data I want to define a function that reads and loads the data and returns dataset numpy arrays. Dataset should have 14…
user19825372
  • 105
  • 4
0
votes
1 answer

cURL command data as input file substitute variables

I am trying to parametrise the confluent connector script - where I have externalised the variables that I am reading from a file and now I am trying to externalise the data part. I am writing a wrapper shell script where I read the parameter file…
adbdkb
  • 1,897
  • 6
  • 37
  • 66
0
votes
1 answer

TCL: reading next line of a file once a certain pattern has been identified

I have this data # Curve 0 of 2, 7 points # x y xlow xhigh type 20.781 1 20.781 20.781 20.8102 10 20.8102 20.8102 20.8395 18 20.8395 20.8395 20.8687 13 20.8687 20.8687 20.898 15 20.898 20.898 20.9273 18 20.9273 20.9273 20.9565 13 …
0
votes
2 answers

How is data organised inside a DB's data file

As a learning exercise I am attempting to write a simple embedded database in C#. Everything is going fine but I am getting really stuck when it comes to saving the data to disk. As an example of one of my problems.. I may need to "insert" data…
Martyn
  • 1,446
  • 2
  • 19
  • 30
0
votes
2 answers

Write a Bash script that can print if the number in the last column is odd or even?

I wanna Write a Bash script that can print if the number in the last column is odd or even or if no numbers in the line from a text file, the data is looking like this in a db.txt file : sdn sddjk@gmail 123 ksd 234 sddd sddsd@gmail i tried this…
ask stack
  • 1
  • 4
0
votes
0 answers

Input File Reading Just Repeats First Data Line from 1 of 2 Files

I'm working on a project. The idea is that it has two input files, we'll call them TimeFile and FullFile. TimeFile gives two timestamps in the format: DD-MM-YY HH:MM:SS DD-MM-YY HH:MM:SS And FullFile is in the format of a timestamp and some…
Jason
  • 11
  • 3
0
votes
0 answers

How to convert byte data into integers and floats using python?

I have a .bin binary file into which some data is written in the following representation. id1: (int,16 bit) id2: (int,16 bit) time: (int,64 bit) val1: (int, 16 bit) val2: (double, 64 bit) I want to read and decode the data into human-readable…
0
votes
1 answer

Converting .data file into numpy arrays

My file.data looks like this: "3.0,1.5,0\n 4.6,0.7,1\n 5.8,2.7,2" And I want to load this data into two numpy arrays so that it looks like this in the end: X = [ [3.0, 1.5], [4.6, 0.7], [5.8, 2.7] ] y = [0, 1, 2] If I do…
Otherness
  • 385
  • 2
  • 16
0
votes
1 answer

EOF not working in data files to save value

public static void main(String[] args) throws IOException { InputStream istream; int c; final int EOF = -1; istream = System.in; FileWriter outFile = new…
Muha18
  • 57
  • 5
0
votes
1 answer

How to pass content of json file as url param

I am trying to learn data parameterization. I have a json file with 2 entries: [ { "accountreference": "4157804914681" }, { "accountreference": "4157804925075" } ] and I manage to print them into…
fatkobra
  • 3
  • 2
0
votes
1 answer

pandas.errors.ParserError: Expected 5 fields in line 3, saw 6

I am trying to read a data file using pandas, import pandas as pd file_path = "/home/gopakumar/Downloads/test.DAT" df = pd.read_csv(file_path, header=None, sep=';', engine='python',encoding="windows-1252") and getting the following error: Traceback…
Gopakumar N G
  • 1,775
  • 1
  • 23
  • 40