Hello, I have a question about what I do wrong when I want to define "x" (and then I plan to define "y" and create a plot of lm(x,y)).
> x <- (di(X.diktator20.), di(X.diktator200.), di (X.diktator2000.), > di(X.diktator20000.)) Error: unexpected ',' in "x <- (di(X.diktator20.)," > x <- (di(X.diktator20., X.diktator200., X.diktator2000., > X.diktator20000.)) Error: could not find function "di" > x <- (X.diktator20., X.diktator200., X.diktator2000., X.diktator20000.) Error: unexpected ',' in "x <- (X.diktator20.," > x <- ("X.diktator20.", "X.diktator200.", "X.diktator2000.", > "X.diktator20000.") Error: unexpected ',' in "x <- ("X.diktator20."," > x <- (X.diktator20.,X.diktator200.,X.diktator2000.,X.diktator20000.) Error: unexpected ',' in "x <- (X.diktator20.," > x <- (X.diktator20.;X.diktator200.;X.diktator2000.;X.diktator20000.) Error: unexpected ';' in "x <- (X.diktator20.;" > x <- ((X.diktator20.)(X.diktator200.)(X.diktator2000.)(X.diktator20000.)) Error: object 'X.diktator20.' not found > x <- > ((di(X.diktator20.))(di(X.diktator200.))(di(X.diktator2000.))(di(X.diktator20000.))) Error: could not find function "di" "di" is a name of my dataset, that is defined and it worked when I did round correlation. "X.diktator.20." and the other ones are names of the columns, at least they are shown like that in R. So how could they not exist? I tried it several ways, then also without X, X., . at the end and so on, but it still did not work. I certainly do something wrong, but I haven“t found it in the help manual yet. Could someone tell me where is my mistake, please? Thank you a lot! -- View this message in context: http://r.789695.n4.nabble.com/Defining-x-by-names-of-columns-in-my-dataset-tp3746689p3746689.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.