我可以读取 A:O 列之间的所有列,但这可能需要指出许多我不关心的列类型。
library(googlesheets4)
library(tidyverse)
gs_ex <- 'https://docs.google.com/spreadsheets/d/<my_long_id>'
gs_raw <-
read_sheet(
gs_ex,
sheet = 'Converted',
range = 'A:O',
col_types = 'cccDccDcDcDccD' # c = character, D = Date
)
我可以只指定我关心的 3 列吗?
gs_raw <-
read_sheet(
gs_ex,
sheet = 'Converted',
range = 'A,K,O', # this will not work
col_types = 'cDD'
)