Displaying 2 results from an estimated 2 matches for "indeterinant".
Did you mean:
indeterminant
2008 Mar 04
3
problem
Good evening to everybody,
I have problems to import in R a really big dataset (more than 1000000 values). Which is the best package to install?
Is there someone who works with this kind of dataset and can help me, please?
Thank you very much,
Regards
Dr.ssa Erika Frigo
Department of Veterinary Sciences and Technology for Food Safety
University of Milan
Via Grasselli, 7
20137 Milano
Tel.
2016 Apr 24
0
Dividing rows in groups
...1 3
+ 3 1 4
+ 4 NA NA
+ 4 0 1
+ 4 3 0
+ 5 2 5
+ 5 7 NA", header = TRUE)
> df2 <- df1 %>%
+ group_by(ID) %>%
+ do({ # now process and indeterinant number of columns
+ result <- . # get original input
+ for (i in 2:ncol(result)){
+ result[[i]] <- result[[i]] / sum(result[[i]], na.rm =
TRUE)
+ }
+ result # return value
+ })
>
> df2
Source: local data frame [10...