Open meowmeow62145 opened 3 years ago
助教好,想請問要輸入的檔案是“samesex_marriage/txt/”這個檔案嗎? 有試過readLine可是好像讀不進去,可以請問要用什麼函數嗎?QQ
samesex_marriage/txt/ 是資料夾喔,裡面有很多檔案 (e.g., anti_1.txt, anti_2.txt, ..., pro_150.txt) 要用 readLines("samesex_marriage/txt/{檔名}") 才讀的進去喔,例如 readLines("samesex_marriage/txt/anti_1.txt")
samesex_marriage/txt/
anti_1.txt
anti_2.txt
pro_150.txt
readLines("samesex_marriage/txt/{檔名}")
readLines("samesex_marriage/txt/anti_1.txt")
助教好,想請問要輸入的檔案是“samesex_marriage/txt/”這個檔案嗎? 有試過readLine可是好像讀不進去,可以請問要用什麼函數嗎?QQ