Geschreven door studenten die geslaagd zijn Direct beschikbaar na je betaling Online lezen of als PDF Verkeerd document? Gratis ruilen 4,6 TrustPilot
logo-home
Tentamen (uitwerkingen)

R Programming

Beoordeling
-
Verkocht
-
Pagina's
11
Cijfer
A+
Geüpload op
10-11-2024
Geschreven in
2024/2025

Exam of 11 pages for the course R Programming at R Programming (R Programming)

Instelling
R Programming
Vak
R Programming

Voorbeeld van de inhoud

R Programming Q&A
getwd() - (correct answer)See the current working directory


setwd() - (correct answer)Move to a different working directory (put a path in the
parentheses)



dir() - (correct answer)List all files in the working directory



<- - (correct answer)The assignment operator will assign a value to a symbol



print() - (correct answer)Explicit printing of what you put in the parentheses. You can
also auto print something by typing it and pressing enter. Note that R will print brackets
around the number of elements in a vector before the elements themselves.



ls() - (correct answer)List all of the objects in the local workspace



list.files() - (correct answer)List all files in the working directory


? - (correct answer)Use this to prompt the help page (e.g., ?list.files will bring up the
help page for the list.files function). Note that symbols must be enclosed in backticks
after the ? (e.g., ?`:`).


args() - (correct answer)Displays the argument names and corresponding default values
of a function or primitive



dir.create() - (correct answer)Create a directory in the current working directory



file.create() - (correct answer)Create a new file in the working directory

, file.exists() - (correct answer)Check to see if a file exists in the working directory



file.info() - (correct answer)Get information about the file



file.rename() - (correct answer)Change the name of a file



file.remove() - (correct answer)Delete a file


file.copy() - (correct answer)Make a copy of a file



file.path() - (correct answer)Create a file path



Create a directory in the current working directory called "testdir2" and a subdirectory
for it called "testdir3" all in one command - (correct answer)dir.create(file.path('testdir2',
'testdir3'), recursive = TRUE)



unlink() - (correct answer)Delete a directory



Delete a directory named "testdir2" - (correct answer)unlink("testdir2", recursive =
TRUE)


Assign the value of the current working directory to a variable called "old.dir" - (correct
answer)old.dir <- dir()


Create a sequence of numbers from 1 through 20 - (correct answer)1:20 or seq(1,20)

This will create 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20



Create a sequence of numbers from pi to 10 - (correct answer)pi:10

Geschreven voor

Instelling
R Programming
Vak
R Programming

Documentinformatie

Geüpload op
10 november 2024
Aantal pagina's
11
Geschreven in
2024/2025
Type
Tentamen (uitwerkingen)
Bevat
Vragen en antwoorden

Onderwerpen

€7,57
Krijg toegang tot het volledige document:

Verkeerd document? Gratis ruilen Binnen 14 dagen na aankoop en voor het downloaden kun je een ander document kiezen. Je kunt het bedrag gewoon opnieuw besteden.
Geschreven door studenten die geslaagd zijn
Direct beschikbaar na je betaling
Online lezen of als PDF

Maak kennis met de verkoper
Seller avatar
douglasmugwe82
5,0
(1)

Maak kennis met de verkoper

Seller avatar
douglasmugwe82 Teachme2-tutor
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
2
Lid sinds
1 jaar
Aantal volgers
0
Documenten
4239
Laatst verkocht
5 maanden geleden
fully answered questions and answer

fully answered questions and answer

5,0

1 beoordelingen

5
1
4
0
3
0
2
0
1
0

Populaire documenten

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen