How to import data from Excel files to R | R Programming

Поделиться
HTML-код
  • Опубликовано: 17 фев 2021
  • Import spreadsheet data to R! In this tutorial for beginners, we show you how to save your Excel files or spreadsheets to csv and how to import them to dataframes in R.
    📊 Now, how to analyze your data? • dplyr intro | Data man...
    🤔 Just getting started? • R Programming for Begi...
    🧮 Data science with dplyr? • dplyr tutorial | A qui...
    #R #Rprogramming #spreadsheet #excel #csv #RStudio #Rtutorial #RStats #DDS #DDSR

Комментарии • 30

  • @erickmetalsand9026
    @erickmetalsand9026 3 года назад +14

    Man, thanks for your help!, I'm beginning with this and I found it helpful, I hope you can continue making videos cause you explain clear, ✌️

  • @geraldolson7364
    @geraldolson7364 3 года назад +2

    Thanks again. Very clear and helpful.

  • @luziiluizth.8742
    @luziiluizth.8742 2 года назад +1

    Awesome 👍👍
    Thanks for sharing this with us ❤️

  • @kkyl5175
    @kkyl5175 3 года назад +1

    Thank you, great video

  • @hoquocnam4232
    @hoquocnam4232 Год назад

    Thanks man, it helps alot

  • @limumbapatrice2643
    @limumbapatrice2643 7 месяцев назад

    Thank you G. I was really stuck in the Google analytics certification

  • @relevant3329
    @relevant3329 3 года назад +1

    You're the best. Thank yoy mate

  • @palmkamaa4749
    @palmkamaa4749 Год назад

    Thanks Bro man👍

  • @abdullahaalmutlaq5868
    @abdullahaalmutlaq5868 Год назад

    Thank you so much

  • @nguyennhatlong7773
    @nguyennhatlong7773 11 месяцев назад

    omg thank you alot

  • @ahmed007Jaber
    @ahmed007Jaber 10 месяцев назад

    Thank u for this
    Managed to find away to accurately load xlsb files in r?

  • @christopherberggren6124
    @christopherberggren6124 11 месяцев назад +2

    Newbie here - have been attempting to import spreadsheets into R Studio using the read.csv function (I right-click to get the file path, copy and paste, convert the single back-slash to a double, and STILL getting error message. I've tried different methods too, like making sure to install and load tidyverse and here, then starting the read.csv function with a DF

  • @golden_falcon9120
    @golden_falcon9120 2 года назад

    Hey I'm an ecologist and doing stuff with species abundance etc. As such, my first column is a list of taxonomic names and my sampling sites are the header. How do I get R to read my first column as a "header"?

    • @ProgrammingDDS
      @ProgrammingDDS  2 года назад

      Hi! If you look at the documentation for the read.csv function (www.rdocumentation.org/packages/xlsx/versions/0.6.5/topics/read.xlsx), you can see there is a "header" variable: "a logical value indicating whether the first row corresponding to the first element of the rowIndex vector contains the names of the variables.". Meaning you just have to set it to True to keep your header. Hope that helps! Best, Lilly

  • @kjeyaprakash2638
    @kjeyaprakash2638 2 года назад

    Please share on how to import Bam files in R

  • @jackolson7071
    @jackolson7071 Год назад

    what if I have multiple sheets? It says I can't save excel file as csv with multiple sheets

  • @isabellekemajou-brown923
    @isabellekemajou-brown923 2 года назад +1

    Very informative video, thank you. I have a question if one may help. I am trying the command read.cvs and tried every step I see in your video but I keep getting error message "Error in read.cvs("path/filename.csv", :
    could not find function "read.cvs""
    I tried both on windows and on mac and I am still having the same error message.

    • @abstract-thoughts
      @abstract-thoughts 2 года назад +1

      You have it written as cvs and csv in this reply... make sure its always csv

    • @isabellekemajou-brown923
      @isabellekemajou-brown923 2 года назад

      @@abstract-thoughts Yes it works now. Thanks Chris!

  • @ehAI8
    @ehAI8 5 месяцев назад

    🎯 Key Takeaways for quick navigation:
    00:00 📊 *Introduction to uploading Excel data into R*
    00:15 📑 *Using Open Spreadsheet for universal accessibility*
    00:28 🧹 *Importance of cleaning up the spreadsheet before uploading*
    00:55 💾 *Saving the file in a simple text format, preferably CSV*
    01:25 ⚠️ *Reminder about losing functionalities when saving in CSV format*
    02:09 🔄 *Switching between CSV and XLSX formats for different purposes*
    02:39 🖥️ *Opening the saved CSV in R- **02:52** 🗂️ Understanding the CSV format in RStudio*
    03:05 📁 *Locating and specifying the file path in R*
    03:33 🔙 *Handling backslashes in file paths for Windows in R*
    04:13 📊 *Reading and displaying the data from CSV in R*
    04:29 🔄 *Converting the CSV data into a data frame in R*
    04:54 🛠️ *Adjusting CSV reading options like header and separators in R*
    05:50 🧬 *Understanding the 'strings as factors' parameter in R*
    06:17 📈 *Behavior of strings in different versions of R*
    Made with HARPA AI

  • @mariatd0
    @mariatd0 8 месяцев назад +1

    whenever I try to copy and paste the path file into read_excel, i get an "error: `path` does not exist". Does anyone know why this happens??

  • @meloanddiiv1418
    @meloanddiiv1418 Год назад

    what abour real world data things are not setup on the same way

  • @hugoalvaraes9692
    @hugoalvaraes9692 2 года назад

    What if column A has 5 observations and column B has 6 observations? How do we import in this situation?

    • @ProgrammingDDS
      @ProgrammingDDS  2 года назад +1

      Hi Hugo! The number of observations per column should not create problems when importing the data. You will probably have one "NA" in the row where there is no observation in column A. Hope that helps! Best, DDS

    • @hugoalvaraes9692
      @hugoalvaraes9692 2 года назад +1

      @@ProgrammingDDS Thanks for the feedback!
      Regards.

  • @Anonymous-md8jp
    @Anonymous-md8jp 5 месяцев назад

    Dream from wish...

  • @musicspinner
    @musicspinner 2 года назад +1

    "/" works on Windows also. "\\" not necessary. 😄