R statistics: problem with simple column vector

前端 未结 3 827
星月不相逢
星月不相逢 2021-01-18 07:40

I have a problem using data from a tab delimited data file imported with read.delim.

Most of the columns contain numerical data which I need to do a

3条回答
  •  清酒与你
    2021-01-18 08:06

    It is possible that some of your data may not be in numeric format after loading it. Check the structure of the data with str(your.data). If your your desired variables are not numeric you can convert them with data$var1 <- as.numeric(data$var1).

提交回复
热议问题