kdamagnet.blogg.se

Google cloud platform rstudio
Google cloud platform rstudio









Then you would need to use gs_data_dir(“gs://your-bucket-name”) along with specifying the file path file.path(data_dir, “something.csv”). I would assume you are accessing this data from a bucket? Firstly, you would need to install the “readr” and “cloudml” packages for these functionalities to work.

google cloud platform rstudio google cloud platform rstudio

There is one other way you can read a csv from your cloud storage with the TensorFlow API. MyData <- as.ame(fread(file="$FILE_PATH",header=TRUE, sep = ',')) Here is the code snippet I ran and managed to display the data frame for my data set: library(“data.table”) In order to run this code snippet make sure you install (install.packages("data.table")) and included the library library(“data.table”)Īlso be sure that you include the fread() within the as.ame() function in order to read the file from it’s location. I’ve tried running a sample csv file with the as.ame() function.











Google cloud platform rstudio