Code Monkey home page Code Monkey logo

kfiles's Introduction

Package Specifications

Purpose

The goal of this package is to provide simple wrapper functions around read.csv() and write.csv()

Description

The wrappers mainly add basic features as checking if the path or file path exist, and create them if not.

Installation

devtools::install_github("thekangaroofactory/kfiles")

Main functions

Create data

  • create_data() - to create a data.frame from a colClasses vector

Read files

  • read_data() - to read a .csv file

Write files

  • write_data() - to write a .csv file

kfiles's People

Contributors

thekangaroofactory avatar

Watchers

 avatar

kfiles's Issues

read_data displays a warning to the console when file does not exist and colClasses is NA

Console:
[create_data] Creating data.frame from colClasses
Warning in utils::read.table(text = "", colClasses = colClasses, col.names = col.names) :
cols = 0 != length(data) = 1

There is a problem in read_data:
colClasses is sent to create_data but it will always result in an empty df!!!
hence the test right after makes no sense

-- Init data

data <- create_data(colClasses)

# -- Check create.file argument
if(create){

  # -- Check dim!
  if(dim(data)[2] > 0)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.