Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
190 views
in Technique[技术] by (71.8m points)

r - Individual variables from the top row of my dataframe are not recognized as objects

I am really new to "R" and stackoverflow here a beginner question it seems so simple that I can not find the answer in the net...

I loaded my data:

df<- read.csv2("HOR.csv", na="NA",header = TRUE)

Now I would like to get an overview from individual variables of my df.

I use

summary(df)

and that works...

But when I try this with individual variables/columns, I get an error

Object not found

summary(A)

eg. the console says:

Error in summary(PSumme) : Object 'PSumme' not found

It is a very basic question but i can not do any type of analysis since it seems that R does not recognize any of my columns as objects, I get the same error when I try adding or subtracting columns with each others or trying to change variables e.g.:

PSumme * -1

I have already tried tibble and other commands to turn the columns heads into variables and it seems to work but the variables are not treated as objects.

Bests and ty for your time!

question from:https://stackoverflow.com/questions/65893187/individual-variables-from-the-top-row-of-my-dataframe-are-not-recognized-as-obje

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...