Tagged: R Toggle Comment Threads | Keyboard Shortcuts

  • wangxinxi 16:36 on August 15, 2013 Permalink | Reply
    Tags: R,   

    Since the Rscript command path is hard coded in rmr2 of Rhadoop, the file streaming.R has to be modified in order to support nonstandard R installation. Eg. you need to do so if your R is installed under your home directory.

  • wangxinxi 18:33 on August 10, 2013 Permalink | Reply
    Tags: R,   

    To copy from OpenOffice Calc/Excel to R under Linux, first create a shell script with the following filename (If you are using Mac OS X, this step can be skipped as the pbpaste command already exists in Mac).


    and with the following content

    xclip -selection clipboard -o

    and then

    chmod a+x /usr/local/bin/pbpaste

    Now you can first copy the data from Calc/Excel and then read the data in R as:

    data <- read.table(pipe("pbpaste"))

    where pipe(“pbpaste”) works pretty much like a regular file, and it actually feeds with the content of the clipboard. Therefore, this also works when the data is copied from other sources such as webpages etc.

  • wangxinxi 09:16 on August 10, 2013 Permalink | Reply
    Tags: R,   

    Saving the workspace frequently is very important for processing big data using R, because you’ll never know which step will take you extremely long time and thus the process have to be killed and start over again.

  • wangxinxi 20:08 on January 16, 2013 Permalink | Reply
    Tags: R,   

    dget of R are extremely slow. Reading 16M matrix needs 10 seconds.
    Using writeBin, readBin instead.

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc