strplit on a column and then create a data frame using that column
up vote
-1
down vote
favorite
I have a csv file file with 4 columns -A,B,C,D. I read that csv file in r . I am now using strsplit on column B and storing the output in a variable called RESULT . I now want to create a dataframe that has the column A,C,D from the original csv file and the RESULT. I tried using data.frame and cbind but it did now work
dataframe strsplit cbind
add a comment |
up vote
-1
down vote
favorite
I have a csv file file with 4 columns -A,B,C,D. I read that csv file in r . I am now using strsplit on column B and storing the output in a variable called RESULT . I now want to create a dataframe that has the column A,C,D from the original csv file and the RESULT. I tried using data.frame and cbind but it did now work
dataframe strsplit cbind
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I have a csv file file with 4 columns -A,B,C,D. I read that csv file in r . I am now using strsplit on column B and storing the output in a variable called RESULT . I now want to create a dataframe that has the column A,C,D from the original csv file and the RESULT. I tried using data.frame and cbind but it did now work
dataframe strsplit cbind
I have a csv file file with 4 columns -A,B,C,D. I read that csv file in r . I am now using strsplit on column B and storing the output in a variable called RESULT . I now want to create a dataframe that has the column A,C,D from the original csv file and the RESULT. I tried using data.frame and cbind but it did now work
dataframe strsplit cbind
dataframe strsplit cbind
asked Nov 8 at 16:53
aj0126
1
1
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f53212524%2fstrplit-on-a-column-and-then-create-a-data-frame-using-that-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