r - How to paste into RStudio data on the clipboard -
this regular "trick":
data=read.table(stdin(),header=true, sep=" ")
however, if try copy , paste following:
per weight cat 1 0.9753 0.1653 cat 2 0.9896 0.1891 cat 3 0.9911 0.1673 cat 4 0.9816 0.1667 cat 5 0.9926 0.1748 cat 6 0.9786 0.1367
using line of code above, several error messages:
more columns column names
- self explanatory...
or...
error: unexpected numeric constant in "1 0.9753"
so, should address these error messages, or there way import data, , deal inconsistencies within rstudio?
Comments
Post a Comment