options(repos = c(CRAN = "https://cran.rstudio.com/"))
install.packages("readxl")
The downloaded binary packages are in
/var/folders/yd/c2zm5hrx3z9f72991hsqsbqh0000gn/T//RtmpwiHegW/downloaded_packages
library(readxl)
install.packages("here")
The downloaded binary packages are in
/var/folders/yd/c2zm5hrx3z9f72991hsqsbqh0000gn/T//RtmpwiHegW/downloaded_packages
library(here) here() starts at /Users/nikhila/Desktop
# Set the file path to your desktop
path_to_sheet <- "/Users/nikhila/Desktop/Data (KPMG & rule of law) .xlsx"
# Read the Excel file
data <- read_excel(path_to_sheet)