Re: [R] make new collumns with conditions

2021-01-25 Thread krissievdh
in zero's for the observations where there weren't any vigilant behaviour. Krissie Op ma 25 jan. 2021 om 17:01 schreef krissievdh : > Hi, > Thanks for your response. > > I do get what you're doing. However, the table I sent is just a small > piece of the complete data

Re: [R] make new collumns with conditions

2021-01-25 Thread krissievdh
"red deer", "red deer", "red deer", "red deer", "red deer", > "red deer", "red deer")), class = "data.frame", row.names = c(NA, > -8L)) > > > Hope this helps, > > Rui Barradas > > Às

[R] make new collumns with conditions

2021-01-25 Thread krissievdh
Hi, I have a dataset (d_vigi)with this kind of data: behavior type duration(s) observation nr species Non-vigilant 5 1 red deer Vigilant 2 1 red deer Vigilant 2 1 red deer Non-vigilant 3 1 red deer Vigilant 7 2 red deer Vigilant 2 2 red deer Non-vigilant 1 2 red deer Unkown 2 2 red deer Now I hav

[R] Help with changing date format in R

2021-01-20 Thread krissievdh
Hi, I have a big database where one-third of the data is in a different date format than the rest. I'll add an example table to show you. | plot | observer | date| | 1 | K | 31012020 | | 2 | K | 070220