How to convert time series into a column
up vote
-3
down vote
favorite
I the following dataset that I downloaded from Yahoo! Finance (and did some basic manipulations). My question is - How do I convert the time column into the dataset into a column of the dataset?
r dataframe time-series
add a comment |
up vote
-3
down vote
favorite
I the following dataset that I downloaded from Yahoo! Finance (and did some basic manipulations). My question is - How do I convert the time column into the dataset into a column of the dataset?
r dataframe time-series
1
Please share the output ofdput(head(z))
.
– markus
5 hours ago
2
Possible duplicate of Convert row names into first column
– Masoud
5 hours ago
add a comment |
up vote
-3
down vote
favorite
up vote
-3
down vote
favorite
I the following dataset that I downloaded from Yahoo! Finance (and did some basic manipulations). My question is - How do I convert the time column into the dataset into a column of the dataset?
r dataframe time-series
I the following dataset that I downloaded from Yahoo! Finance (and did some basic manipulations). My question is - How do I convert the time column into the dataset into a column of the dataset?
r dataframe time-series
r dataframe time-series
edited 5 hours ago
markus
8,343928
8,343928
asked 5 hours ago
Arpan Ganguli
314
314
1
Please share the output ofdput(head(z))
.
– markus
5 hours ago
2
Possible duplicate of Convert row names into first column
– Masoud
5 hours ago
add a comment |
1
Please share the output ofdput(head(z))
.
– markus
5 hours ago
2
Possible duplicate of Convert row names into first column
– Masoud
5 hours ago
1
1
Please share the output of
dput(head(z))
.– markus
5 hours ago
Please share the output of
dput(head(z))
.– markus
5 hours ago
2
2
Possible duplicate of Convert row names into first column
– Masoud
5 hours ago
Possible duplicate of Convert row names into first column
– Masoud
5 hours ago
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Looks like you want to transpose the data frame. You may do that as follows:
df.t <- as.data.frame(t(z))
colnames(df.t) <- rownames(z)
rownames(df.t) <- c()
Hope it helps.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Looks like you want to transpose the data frame. You may do that as follows:
df.t <- as.data.frame(t(z))
colnames(df.t) <- rownames(z)
rownames(df.t) <- c()
Hope it helps.
add a comment |
up vote
0
down vote
Looks like you want to transpose the data frame. You may do that as follows:
df.t <- as.data.frame(t(z))
colnames(df.t) <- rownames(z)
rownames(df.t) <- c()
Hope it helps.
add a comment |
up vote
0
down vote
up vote
0
down vote
Looks like you want to transpose the data frame. You may do that as follows:
df.t <- as.data.frame(t(z))
colnames(df.t) <- rownames(z)
rownames(df.t) <- c()
Hope it helps.
Looks like you want to transpose the data frame. You may do that as follows:
df.t <- as.data.frame(t(z))
colnames(df.t) <- rownames(z)
rownames(df.t) <- c()
Hope it helps.
edited 4 hours ago
answered 4 hours ago
TeeKea
926617
926617
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53400772%2fhow-to-convert-time-series-into-a-column%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Please share the output of
dput(head(z))
.– markus
5 hours ago
2
Possible duplicate of Convert row names into first column
– Masoud
5 hours ago