Featured

Complete Tutorial | R & RStudio - Lesson 9 - Control Tools & Decision Making |تعلم لغة البرمجة أر



Published
R is a programming language and free software environment for statistical computing and graphics supported by the R Core Team and the R Foundation for Statistical Computing. It is widely used among statisticians and data miners for developing statistical software and data analysis.

RStudio is an integrated development environment (IDE) for R. It includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, debugging and workspace management.

Complete Tutorial | R & RStudio - Lesson 9 - R Control Structures – Decision Making and Loops in R.
Let us get familiar with the IDE we will use for R.
Elementary variables used in R calculations

R has six types of basic data structures. We can organize these data structures according to their dimensions(1d, 2d, nd). We can also classify them as homogeneous or heterogeneous (can their contents be of different types or not).

Homogeneous data structures are ones that can only store a single type of data (numeric, integer, character, etc.).

Heterogeneous data structures are ones that can store more than one type of data at the same time.

R does not have 0 dimensional or scalar type. Variables containing single values are vectors of length 1.


R Scripts
R provides different control structures that can be used on their own and even in combinations to control the flow of the program. These control structures are:

If – else
ifelse() function
Switch
For loops
While loops
Break statement
Next statement
Repeat loops

R programming tutorial with everything you need to know to start coding in RStats and RStudio. All the basics and fundamentals for non-coders and beginners in R programming! This is the perfect first step in your journey to master Data Science.



لغة البرمجة آر هي بيئة برمجية إحصائية للتنهيج والرسم، اخترعها روس ايهاكا وروبيرت جنتلمان وسميت بلغة R تيمناً بإسميهما

لغة آر هي بيئة عمل برمجية للإحصاء الحاسوبي تسمح بإجراء التطبيقات الإحصائية من جهة وبناء البرامج الإحصائية من جهة أخرى. هي مفتوحة المصدر، وهناك نسخة مجانية لها من لغة البرمجة الإحصائية (+Splus(S والتي تعتمد على اللغة آس (S). يمكن إدخال المعطيات إلى لغة R يمكن أن تكون أشعة أو مصفوفات أو سلاسل زمنية وقد تكون توابع أو رسوم بيانية.إن ّ لغة R هي لغة تابعية يعني كل أمر من أوامرها هو تابع يقبل العديد من الوسطاء

آر ستوديو (بالإنجليزية: RStudio) هو بيئة تطوير متكاملة ومفتوحة المصدر للغة البرمجة الإحصائية آر "R"

يحتوي أر على بنى المعطيات الأساسية الخاصة - القائمة أو االمصفوفة ثنائية الأبعاد

المصفوفات هي هياكل بيانات متعددة الأبعاد في R. وهذا يعني أنه يمكن أن يكون لها أي عدد من الأبعاد. هم ناقلات ذات بعدين أو أكثر بالنسبة لهم. المصفوفات هي حالة خاصة من المصفوفات ثنائية الأبعاد.

في هذا البرنامج التعليمي ، سوف نستكشف مفهوم المصفوفات في برمجة R. سنتعلم كيفية إنشاء المصفوفات وصفوف الأسماء والأعمدة والأبعاد الأخرى. سننظر بعد ذلك في الوصول إلى عناصرها وتعديلها.

أخيرًا ، سننظر في كيفية عمل العمليات المختلفة على المصفوفات في لغة البرمجة R.

العوامل هي هياكل البيانات في R التي تخزن البيانات الفئوية. في مجموعات البيانات ، غالبًا ما توجد حقول لا تأخذ سوى عدد قليل من القيم المحددة مسبقًا. على سبيل المثال - الجنس ، والتوافر ، والبلد ، والحالة الاجتماعية ، وما إلى ذلك تسمى هذه البيانات البيانات الفئوية.


مخطوطات R
يوفر R هياكل تحكم مختلفة يمكن استخدامها بمفردها وحتى في مجموعات للتحكم في تدفق البرنامج. هياكل التحكم هذه هي:

If – else
ifelse() function
Switch
For حلقات
While حلقات
Break شرط
Next شرط
Repeat حلقات

دورة متكاملة لتعلم لغة البرمجة أر للعمليات الرياضية و الإحصائية - الدرس التاسع - أدوات التحكم & وسير البرامج
البداية الصحيحة للدخول إلى عالم المعلوماتية
كورس - دورة - باللغة العربية
Category
Management
Be the first to comment