r - readr multiple columns' type at once -
i try handle readr function. mean, example readr github webpage:
read_csv("iris.csv", col_types = list( sepal.length = col_double(), sepal.width = col_double(), petal.length = col_double(), petal.width = col_double(), species = col_factor(c("setosa", "versicolor", "virginica")) )) is there chance use within read_csv function can determine col_double several columns @ once e.g. grepl("length|witdh",col_names) = col_double()?
thanks,
Comments
Post a Comment