dbf

Split, apply, and combine multiple data frames into one data frame

半城伤御伤魂 提交于 2021-02-07 20:44:42
问题 I have completed an origin-destination cost matrix (23 origins, ~600,000 destinations) for traveling through a street network in ArcGIS and disaggregated the resulting matrix into DBF tables by store ID using a Python script. I have loaded each DBF table into an R session as follows: # Import OD cost matrix results for each store origins <- read.dbf('ODM_origins.dbf') store_17318 <- read.dbf('table_17318.dbf') store_17358 <- read.dbf('table_17358.dbf') store_17601 <- read.dbf('table_17601.dbf

How do I create a column name in DBF more than 10 characters in javadbf library?

强颜欢笑 提交于 2021-01-29 14:11:51
问题 I am using javadbf from github (link: https://github.com/albfernandez/javadbf) to create DBF files, but I cannot create a column with a name greater than 10 characters: fields[39].setName("WAY_SONIC_ROKETS"); I tried to change this in the project from the github, but nothing came of it. A request from knowledgeable people to give an answer whether this can be changed or, if possible, suggest a place where it needs to be corrected. If understood correctly, this is only generated in DBFField.

How to save a dbf file in groovy or java?

雨燕双飞 提交于 2021-01-07 05:06:49
问题 In one of the questions regarding DBF creation, I found the code below. Did I understand correctly that a DBF file is created here with the names of the columns and the values that will be returned as a result of executing the SQL query? Does println do DBF output? And if everything is so, then how to save the resulting DBF file (name.dbf)? I'm confused and can't figure it out with DBF. I need to create a DBF file and fill it with values by accessing a function in a SQL package. The second

How to save a dbf file in groovy or java?

微笑、不失礼 提交于 2021-01-07 05:05:43
问题 In one of the questions regarding DBF creation, I found the code below. Did I understand correctly that a DBF file is created here with the names of the columns and the values that will be returned as a result of executing the SQL query? Does println do DBF output? And if everything is so, then how to save the resulting DBF file (name.dbf)? I'm confused and can't figure it out with DBF. I need to create a DBF file and fill it with values by accessing a function in a SQL package. The second

How do I convert a .dbf file into a Pandas DataFrame?

喜夏-厌秋 提交于 2021-01-05 08:58:34
问题 I have a .dbf file that I would like to convert into a pandas DataFrame , but DataFrame s aren't able to directly convert the data. 回答1: Using my dbf library, the following function will do the job: def dbf_to_dataframe(filename): """ converts the dbf table at filename into a Panda's DataFrame data types and field names are preserved """ import dbf import numpy as np import pandas as pd from datetime import date, datetime, time names = [] types = [] with dbf.Table(filename): for name in table

Trying to access to a DBF file using Advantage OLE DB provider throws an exception when opening a connection

天大地大妈咪最大 提交于 2020-12-13 03:13:42
问题 I have an ASP.NET MVC application which is trying to open below OLE DB connection: string conString = @"Provider=Advantage OLE DB Provider;Data Source=" + dbfFilePath + ";Extended Properties=dBASE IV;"; using (dBaseConnection = new OleDbConnection(conString)) { dBaseConnection.Open(); // Some stuff } I have installed below package from here. I am using this provider in order to access a dbf file (specified on the dbfFilePath variable) and then later add some information into it. When I

Trying to access to a DBF file using Advantage OLE DB provider throws an exception when opening a connection

丶灬走出姿态 提交于 2020-12-13 03:11:34
问题 I have an ASP.NET MVC application which is trying to open below OLE DB connection: string conString = @"Provider=Advantage OLE DB Provider;Data Source=" + dbfFilePath + ";Extended Properties=dBASE IV;"; using (dBaseConnection = new OleDbConnection(conString)) { dBaseConnection.Open(); // Some stuff } I have installed below package from here. I am using this provider in order to access a dbf file (specified on the dbfFilePath variable) and then later add some information into it. When I

binary safe write on file with php to create a DBF file

℡╲_俬逩灬. 提交于 2020-07-22 21:32:56
问题 I need to split a big DBF file using php functions, this means that i have for example 1000 records, i have to create 2 files with 500 records each. I do not have and dbase extension available nor i can install it so i have to work with basic php functions. Using basic fread function i'm able to correctly read and parse the file, but when i try to write a new dbf i have some problems. As i have understood, the DBF file is structured in a 2 line file: the first line contains file info, header

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘select’ for signature ‘“spec_tbl_df”’

邮差的信 提交于 2020-06-16 16:55:06
问题 I am having this error code appear on in my project. the strange thing is, the piece of code I am using was working perfectly earlier today. However, since I installed an update for R I am now getting this message when running it. df1 <- df %>% select(Month, Longitude, Latitude, Type) Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘select’ for signature ‘"spec_tbl_df"’ The code was used simply to create a new data frame with only the selected

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘select’ for signature ‘“spec_tbl_df”’

那年仲夏 提交于 2020-06-16 16:54:54
问题 I am having this error code appear on in my project. the strange thing is, the piece of code I am using was working perfectly earlier today. However, since I installed an update for R I am now getting this message when running it. df1 <- df %>% select(Month, Longitude, Latitude, Type) Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘select’ for signature ‘"spec_tbl_df"’ The code was used simply to create a new data frame with only the selected