All Questions
Tagged with traminer data-manipulation
6
questions
2
votes
1
answer
79
views
What to do when dput() doesn't work?
I usually use dput() to a) save R objects, and b) to understand their internal structure. However, in the TraMineR package I encounter something I haven't seen before:
library(TraMineR)
data(actcal....
2
votes
2
answers
487
views
How to identify sequences within each cluster?
Using the biofam dataset that comes as part of TraMineR:
library(TraMineR)
data(biofam)
lab <- c("P","L","M","LM","C","LC","LMC","D")
biofam.seq <- seqdef(biofam[,10:25], states=lab)
head(...
2
votes
1
answer
1k
views
Looping through sequence objects in a list?
I have a list that contains 24 TraMineR sequence objects. Now I want to calculate the Optimal Matching distances for each of these sequence objects (only within each object) and store it in a new list,...
3
votes
2
answers
956
views
Rearranging a dataframe in R
I have a dataframe that looks like this:
created_at actor_attributes_email type
3/11/12 7:28 [email protected] PushEvent
3/11/12 7:28 [email protected] PushEvent
3/11/12 7:28 ...
1
vote
1
answer
504
views
Cutting a CSV file up into different columns using R
This is a follow up question to Pivoting a CSV file using R.
In that question, I wanted to cut up a single column (type) into several columns based on the values in column (repository_name). The ...
2
votes
3
answers
1k
views
Pivoting a CSV file using R
I have a file that looks like this:
type created_at repository_name
1 IssuesEvent 2012-03-11 06:48:31 bootstrap
2 IssuesEvent 2012-03-11 06:48:31 ...