Entering edit mode
Hi, Is there a way to use dplyr commands on S4Vectors DataFrame objects? df <- df %>% mutate(a=str_replace(b,"hello","world"))
gives an error: Error in UseMethod("mutate") : no applicable method for 'mutate' applied to an object of class "c('DFrame', 'DataFrame', 'RectangularData', 'SimpleList', 'DataFrame_OR_NULL', 'List', 'Vector', 'list_OR_List', 'Annotated', 'vector_OR_Vector')"
That won't work because my DataFrame object has columns that are only compatible with DataFrame and not with data.frame. So they will lose their 'class' type when converting to data.frame.
Is there any way to use dplyr commands on those columns that are compatible with data.frame, without losing the 'class' type of the columns that are not compatible with data.frame?