Analysis in R: “readbulk” package for reading CSV files in bulk

RAnalytics
スポンサーリンク

This is an introduction to a package that is useful for reading CSV files from a specified folder at once. The loaded files are converted to data.frame by filename and column.

Additionally. The “tcltk” package is used in the execution command to allow the folder to be specified in the GUI.

Package version is 1.1.3. Checked with R version 4.2.2.

スポンサーリンク

Install Package

Run the following command.

#Install Package
install.packages("readbulk")

Example

See the command and package help for details.

#Loading the library
library("readbulk")

#Loading Files:read_bulk command
#Existence or non-existence of sub-folders:subdirectories option
#Adding data to existing data:data option;Specify existing data name
#Factorize data consisting only of strings:stringsAsFactor option
library("tcltk")
raw_data <- read_bulk(directory = paste(as.character(tkchooseDirectory(title = "Select Folder"),
                                                     sep = "", collapse ="")),
                      subdirectories = FALSE,
                      data = NULL, stringsAsFactor = TRUE)

I hope this makes your analysis a little easier !!

Amazon audibleの登録の紹介

プライム会員限定で2024年7月22日まで3か月無料体験キャンペーン開催中です。無料体験後は月額1,500円で聞き放題です。なお、聞き放題対象外の本はAudible会員であれば非会員価格の30%引きで購入することが可能です。

Amazon audibleはプロのナレーターが朗読した本をアプリで聞くことができるサービスで、オフライン再生も可能です。通勤や作業のお供にAmazon audibleのご登録はいかがでしょうか。

・AmazonのAudible

https://amzn.to/3L4FI5o

Copied title and URL