Re: [R] Rename variables starting with digits

2021-10-06 Thread Anne Zach
2 3 > 1 10 20 30 > 2 11 22 33", > header=TRUE,stringsAsFactors=FALSE) > azdat > subject X1 X2 X3 > 1 1 10 20 30 > 2 2 11 22 33 > > As you can see, R simply prepends an "X" to numeric names. If you > really want a "v": > >

[R] Rename variables starting with digits

2021-10-05 Thread Anne Zach
Dear R users, I have a dataframe that contains several variables, among which 105 correspond to scores on certain trials. Unfortunately, when I imported this dataframe into R, I realised that the variable names corresponding to each trial begin with digits, which violates R naming conventions. I