After you downloaded a dataset, you print the head information of the data and it looks like this: =====================

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

After you downloaded a dataset, you print the head information of the data and it looks like this: =====================

Post by answerhappygod »

After you downloaded a dataset, you print the head information of the data and it looks like this:
===============================
"{\"executionTime\":\"2018-07-18 02:36:28 PM\",\"stationBeanList\":[{\"id\":72,\"stationName\":\"W 52 St & 11 Ave\",\"availableDocks\":37,\"totalDocks\":39,\"latitude\":40.76727216,\"longitude\":-73.99392888,\"statusValue\":\"In Service\",\"statusKey\":1,\"availableBikes\":2,\"stAddress1\":\"W 52 St & 11 Ave\",\"stAddress2\":\"\",\"city\":\"\",\"postalCode\":\"\",\"location\":\"\",\"altitude\":\"\",\"testStation\":false,\"lastCommunicationTime\":\"2018-07-18 02:35:01 PM\",\"landMark\":\"\"},{\"id\":79,\"stationName\":\"Franklin St & W Broadway\",\"availableDocks\":4,\"totalDocks\":33,\"latitude\":40.71911552,\"longitude\":-74.00666661,\"statusValue\":\"In Service\",\"statusKey\":1,\"availableBikes\":28,\"stAddress1\":\"Franklin St & W Broadway\",\"stAddress2\":\"\",\"city\":\"\",\"postalCode\":\"\",\"location\":\"\",\"altitude\":\"\",\"testStation\":false,\"lastCommunicationTime\":\"2018-07-18 02:34:43 PM\",\"landMark\":\"\"},{\"id\":82,\"stationName\":\"St James Pl & Pearl St\",\"... <truncated>
==============
Which function would you use to read this dataset? and what is the name of the R library (package) you need to load to be able to use the function?
Group of answer choices
read.csv, no need to load library
read_csv in readr package
getURL in jsonlite pakcage
fromJSON in jsonlite package
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply