GithubHelp home page GithubHelp logo

sas-r's Introduction

Hi there ๐Ÿ‘‹

I am a Senior Statistician at the Central Statistics Office (CSO). I use GitHub for a couple of work-related and hobby projects. My main languages are R and SAS.

Some projects

You can find me on LinkedIn here.

sas-r's People

Contributors

brendanjodowd avatar

Stargazers

 avatar  avatar

Watchers

 avatar

sas-r's Issues

Save/Load examples

I love your cheat sheet for introducing SAS users to R, but I'd make one suggestion:

In the File operations suggestion, I believe you should replace the save()/load() examples with saveRDS() and readRDS()

The *RDS functions are functionally equivalent to setting SAS data into/from a library--they store a single object and they let you easily define a name on load.

Generally using save() is a bad habit, especially when sharing data with others and only saving a single dataframe. It can be useful in certain circumstances (e.g. saving many pieces of an environment for resumption later) but I'd say that's beyond the scope of a new-user cheat sheet.

Load() can be particularly dangerous since it will overwrite existing objects without warning. It can be potentially catastrophic to perform a plain load() on a file created by another team member. Especially for SAS users who may be new to concepts like environments, variable scopes, and the existence of variables/objects beyond dataframes. Much better to use loadRDS() where you can pick and choose which objects you actually want to load and assign them non-conflicting names.

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.