题目
题目

COMM_V 205 101 102 103 2025W1 In-class Exercise (ICE) 15

多项填空题

Suppose vancouver_housing_price.rds is a file saved under your current working directory. You want to save the dataset in vancouver_housing_price.rds into a csv file and save it as vancouver_housing_price.csv under the current working directory. Complete the following code.  [Fill in the blank] ([Fill in the blank] ("vancouver_housing_price.[Fill in the blank] "), "vancouver_housing_price.[Fill in the blank] ") Each blank should be either a name of a function or a file extension (e.g., csv, rds, R etc.). You can only use readRDS, saveRDS, read_csv, write_csv, csv or rds in each blank.    

查看解析

查看解析

标准答案
Please login to view
思路分析
We’re given a scenario where a dataset saved as an RDS file (vancouver_housing_price.rds) needs to be read in and then saved out as a CSV file (vancouver_housing_price.csv) in the current working directory. The task is to fill in four blanks with appropriate items drawn from the allowed set: readRDS, saveRDS, read_csv, write_csv, csv, or rds. Option analysis: - First blank: write_csv This position is expected to be a function name (not a file extension) because the surrounding syntax shows a function call structure where the first blank should be the function that writes or saves the data to disk. write_csv is the correct function to create a ......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!