“Warning: too many (few) values” for using tidyr packages in R [duplicate]
问题 This question already has answers here : How do I deal with special characters like \^$.?*|+()[{ in my regex? (2 answers) Closed 2 years ago . I have the following data set D7 name sex_age eye_color height 1 J M.34 Other 61 2 A F.55 Blue 59 3 T M.76 Brown 51 4 D F.19 Other 57 I want to separate the column sex_age into sex column and age column, so I type separate(D7,sex_age,c('sex','age'),sep='.') But it generates name sex age eye_color height 1 J Other 61 2 A Blue 59 3 T Brown 51 4 D Other