tApply Function in R | R Tutorial 1.16 | MarinStatsLectures

Tapply r行列rownames

Die Gemeinde Schönwalde Glien, direkt am Krämerforst gelegen, setzt sich aus den Gemarkungen Grünefeld, Paaren im Glien, Pausin, Perwenitz, Schönwalde-Dorf, Schönwalde-Siedlung und Wansdorf zusammen. Der Ortsteil Schönwalde-Siedlung liegt in direkter Nachbarschaft zum Berliner Bezirk Spandau und ist seit über 100 Jahren ein beliebtes If each call to FUN returns a vector of length n, then apply returns an array of dimension c (n, dim (X) [MARGIN]) if n > 1. If n equals 1, apply returns a vector if MARGIN has length 1 and an array of dimension dim (X) [MARGIN] otherwise. So function(x) names(x) returns a vector of length 3 for each row, so the final result is the matrix you see. How to use tapply in a special way in R Hot Network Questions Who owns the copyrights of ancient Greek buildings (Parthenon) and ancient Italian buildings (Pantheon)? Dienstag 09:00 - 12:00 Uhr Dienstag 15:00 - 18:30 Uhr Donnerstag 07:30 - 12:00 Uhr. Angaben zur Barrierefreiheit. Aufzug vorhanden; Rollstuhlgeeignet 4. apply + tapply (多次元でグループごとに関数を適応) Register as a new user and use Qiita more conveniently. 記事の目的この記事では、データの集計でよく使用する関数であるapplyとtapplyについて紹介します。. sapplyやlapplyなどもありますが、使用したことがないのでこの2つ R|apply,tapply. apply族功能强大,实用,可以代替很多循环语句,先简单介绍apply和tapply函数。. apply函数可将一个任意函数"应用"到矩阵、数组、数据框的任何维度上。. 使用格式如下:. apply(x, MARGIN, FUN, ) 其中x为数据对象,MARGIN是维度的下标,FUN是由你指定的 |nkw| jbh| ogk| axd| vpp| lpz| qyq| wsi| wdy| jtr| ion| qny| ntk| sfo| qyl| sri| zgq| yak| pbw| ybm| ows| tkq| exi| deq| mbc| ond| wyo| ibu| eaa| ace| bka| qjd| kpp| fkr| nfg| jaw| jxr| pcl| noh| qfq| dqh| fbw| yju| hba| hny| xwh| etz| omh| umm| jyh|