search for: orginin

Displaying 2 results from an estimated 2 matches for "orginin".

Did you mean: orginal
2013 Jan 11
3
split & rbind (cast) dataframe
Hi, I would like to split dataframe based on one colum and want to connect the two dataframes by rows (like rbind). Here a small example: # The orgininal dataframe df1 <- data.frame(col1 = c("A","A","B","B"),col2 = c(1:4), col3 = c(1:4)) # The datafame how it could look like df2 <- data.frame(A.col2 = c(1,2), A.col3 = c(1,2), B.col2 = c(3,4), B.col3 = c(3,4)) I think I already did a similar procedure...
2006 Aug 01
1
What's a labelled data.frame? And how do I work with it?
...llocation$date, st1) ----------------------------------------------------- If I have applied a label to the data.frame I get an error Error in data.frame(staff.allocation$site, staff.allocation$subject, staff.allocation$date, : arguments imply differing number of rows: 1865, 114 I orgininally was getting an error about " staff.allocation$site is a labelled class and cannot be coerced into a data.frame" but I lost that one while trying to see what was happeing If I do not apply the label to staff.allocation then I get a Class = "data.frame and I have no pro...