Levels in R Dataframe

后端 未结 4 1267
囚心锁ツ
囚心锁ツ 2021-01-18 06:00

I imported data from a .csv file, and attached the dataset.
My problem: one variable is in integer form and has 295 levels. I need to use this variable to create others

4条回答
  •  粉色の甜心
    2021-01-18 06:22

    Do summary(data) to check things got read in properly. If columns aren't numeric that should be, look at the colClasses argument to read.csv to force it, which will probably also result in NA values for poorly-formed numbers.

    help(read.csv) will help.

提交回复
热议问题