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

Поделиться
HTML-код
  • Опубликовано: 10 дек 2024

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

  • @ehAI8
    @ehAI8 11 месяцев назад +1

    🎯 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

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

    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, ✌️

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

      Thank you! Glad we could help :)

    • @efootball_tamil
      @efootball_tamil 3 месяца назад

      Hey now have you learned R language completely?

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

    Thanks again. Very clear and helpful.

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

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

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

    Thanks man, it helps alot

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

    You're the best. Thank yoy mate

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

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

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

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

  • @christopherberggren6124
    @christopherberggren6124 Год назад +4

    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

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

    Thank you, great video

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

    Thanks Bro man👍

  • @mariatd0
    @mariatd0 Год назад +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??

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

    Thank you so much

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

    omg thank you alot

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

    Awesome 👍👍
    Thanks for sharing this with us ❤️

  • @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 3 года назад

    Please share on how to import Bam files in R

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

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

  • @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!

  • @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.

  • @evolutionentertainment
    @evolutionentertainment 4 месяца назад

    Your file properties has export into R why is that

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

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

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

    Dream from wish...