裏 RjpWiki

Julia ときどき R, Python によるコンピュータプログラム,コンピュータ・サイエンス,統計学

tribble の効用?

2022年03月30日 | Julia

【R前処理講座12】{tibble}データフレームの進化版【tidyverse】
https://datasciencemore.com/tibble/


# tribbleを使用して,Markdownチックな表記でtibbleが作成できます.
using RCall
R"""
library(dplyr)
trb = tribble(
  ~No., ~language,
  #-----|---|----
  1, "R",
  2, "Python",
  3, "Julia"
)
"""
trb

Julia だと,

using CSV, DataFrames
data = """
    No., language
    1, "R"
    2, "Python"
    3, "Julia"
"""
df = CSV.read(IOBuffer(data), DataFrame)

コメント
  • X
  • Facebookでシェアする
  • はてなブックマークに追加する
  • LINEでシェアする

base-R の forward pipe operator

2022年03月30日 | ブログラミング

pipeOp {base}                                    R Documentation

Background

The forward pipe operator is motivated by the pipe introduced in the magrittr package, but is more streamlined. It is similar to the pipe or pipeline operators introduced in other languages, including F#, Julia, and JavaScript.

コメント
  • X
  • Facebookでシェアする
  • はてなブックマークに追加する
  • LINEでシェアする

PVアクセスランキング にほんブログ村

PVアクセスランキング にほんブログ村