PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, October 6, 2022

[FIXED] How to save R datasets(eg: datasets from libraries like MASS, ISLR, etc.,) to a csv file

 October 06, 2022     dataset, export-to-csv, r, statistics     No comments   

Issue

How to extract the datasets that are provided in r libraries into csv files. Faced this issue when trying to implement R related data analysis programs in python.


Solution

First you can make sure the data is loaded from the package with data() and then write it out with write.csv

data(Boston, package = "MASS")
write.csv(Boston, "Boston.csv")


Answered By - MrFlick
Answer Checked By - Dawn Plyler (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing