تصدير البيانات إلى R
في هذا الشرح الإرشادي، سترى كيفية تصدير البيانات إلى RStudio ثم تحويلها إلى الرسوم البيانية والجداول
آخر تحديث
هل كان هذا مفيدا؟
هل كان هذا مفيدا؟
survey_csv <- read.csv(file="C:/Users/Admin/Downloads/ClientSatisfactionSurvey.csv",stringsAsFactors = TRUE, header=TRUE, sep=",")summary(survey_csv)table(survey_csv$Recommend_likelihoodsurvey_csv$Recommend_likelihood <- factor(
survey_csv$Recommend_likelihood,
levels = c("Very unlikely", "Unlikely",
"Neutral", "Likely", "Very likely")
)barplot(
table(survey_csv$Recommend_likelihood),
main = "How likely are you to recommend our service to a friend or colleague",
xlab = "Recommendation Likelihood",
ylab = "Frequency",
col = "lightblue",
las = 2,
cex.names = 0.8 # Reduces the size of the bar labels
)par(mar = c(7, 5, 4, 2) + 0.1, mgp = c(4, 1, 0))