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

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

php - How do you embed a video into a custom theme on WordPress? -