民意作業

Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.

Running Code

When you click the Render button a document will be generated that includes both content and the output of embedded code. You can embed code like this:

#研究問題
#TikTok社群平台的使用是否影響中國對台灣的統戰行動

#資料描述
#本研究將使用《民主實驗室TikTok使用者網路調查》,此調查問卷中有受訪者社群媒體使用習慣、對兩岸統一看法及中華民族認同問題等,藉由上述問題來分析使用TikTok與中國統戰行動間之關聯。

library(readxl)

data<-read_excel("民主實驗室TikTok使用者網路調查_譯碼簿0326.xlsx")

head(data)  
# A tibble: 6 × 2
  題號           題目                                           
  <chr>          <chr>                                          
1 編號           <無>                                           
2 抖音活躍使用者 抖音活躍使用者                                 
3 S0             S0.請問您的西元出生年次?                      
4 S0_AGE         S0.請問您的年齡                                
5 S1             S1.請問您最近一年有多常使用TikTok抖音?        
6 S2             S2.請問您平常單次使用TikTok抖音大概的時間長度?

You can add options to executable code like this

[1] 4

The echo: false option disables the printing of code (only output is displayed).