Was looking for a easy way to get the sum total of around 170 different columns in my data table as a new column. Is there some wild card notation I can use?
This following is a small extract (first few columns) from my dataset:
> head(t_checkin)
checkin_info_0.0 checkin_info_0.1 checkin_info_0.2 checkin_info_0.3 checkin_info_0.4 checkin_info_0.5
NA NA NA NA NA 1
3 NA NA NA NA 1
NA NA 1 NA NA NA
NA NA NA NA NA NA
NA NA NA NA NA NA
NA NA NA NA NA NA
Any help would be greatly appreciated. Thanks