df = readRDS('mydata.RDS')
message('column names: ',colnames(df))
输出
column names: col1col2col2col4
如何使用
等空格进行打印column names: col1 col2 col3 col4
答案 0 :(得分:2)
您可以使用(defun scatter (lists)
(eazy-gnuplot:with-plots (*standard-output* :debug t)
(eazy-gnuplot:gp-setup :terminal '(:qt))
(dolist (cluster lists)
(eazy-gnuplot:plot (lambda ()
(dolist (point cluster)
(format t "~&~A ~A" (first point) (second point))))))
(format t "~&pause mouse button1;~%")))
。我使用了paste()
数据集并添加了一个换行符。
mtcars