Just learning the R code, and I am trying to make what I thought would be simple script which has not been easy, I am importing a excel file with no issue there, but want to make a script that will remove duplicate name but take the there hours and claims and add to the single name.. example would be
Name Hours Claims
Jack 1 1
Jack 1 1
Paul 1 1
would like it to do this.
Name Hours Claims
Jack 2 2
Paul 1 1
is there a step I am missing I am getting Error object not found Hours and claims.. I imported the data in Rstudio and the excel file is loaded and showing the data in top left corner of screen.. or do I need other commands so it uses the data that was imported.
I figured out the partial mistake I was using the DF instead of the actual name of the file I was importing.. now just have to tinker alittle more, I got it to sort of work except it added 2 and 2 to both names instead of just the one. oh yeah thanks for the help got me further then before.