Hello everybody and sorry already for posting (hopefully in the correct manner) beginner questions.
Regarding a dataset of total assets and total personnel costs, I would like to know if there is any possibility to calculate the respective percentage shares for each company by a row-wise command.
Thank you already for any kind of advice and support
data.frame(
stringsAsFactors = FALSE,
Company = c("A","B","C","D","E","F",
"G","H","I","J","K","L","M"),
TA2017 = c(1066500,100464,77618,1056665,
11604429,913002,841644,847831,4833966,3698848,
3193911,4501316,1357833),
TPC2017 = c(658187,254310,67826,473905,
5403636,735155,876751,529764,2104877,355106,807324,
671716,1038536),
Percentage = c(NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA)
)