Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rbase
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
courses
Rbase
Commits
4312b6ac
Commit
4312b6ac
authored
8 years ago
by
Elisabetta Ronchieri
Browse files
Options
Downloads
Patches
Plain Diff
Update aapl_prezzi.R
parent
3393ba93
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
esempiII/aapl_prezzi.R
+5
-5
5 additions, 5 deletions
esempiII/aapl_prezzi.R
with
5 additions
and
5 deletions
esempiII/aapl_prezzi.R
+
5
−
5
View file @
4312b6ac
# determinare l'errore
caricare
il
file
#
caricare il file
aapl
<-
read.csv
(
file
=
'aapl_prezzi.csv'
,
header
=
TRUE
,
stringsAsFactor
=
FALSE
)
invertire
i
dati
sulle
righe
#
invertire i dati sulle righe
aapl
<-
aapl
[
rev
(
rownames
(
aapl
)),]
estrarre
il
prezzo
di
chiusura
#
estrarre il prezzo di chiusura
aapl_close
<-
aapl
[,
'Close'
]
determinare
informazioni
statistiche
in
formato
tabellare
#
determinare informazioni statistiche in formato tabellare
summary
(
aapl_close
)
scrivere
il
file
modificato
#
scrivere il file modificato
write
(
aapl
,
file
=
'aapl_prezzi_riordinato.csv'
)
# riaprire il file
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment