找回密码
 注册
查看: 397|回复: 0

R语言 flowCore包 fsApply()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 17:43:42 | 显示全部楼层 |阅读模式
fsApply(flowCore)
fsApply()所属R语言包:flowCore

                                        Apply a Function over values in a flowSet
                                         应用多值函数在flowSet

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

fsApply like many of the apply-style functions in R acts as an iterator for flowSet objects, allowing the application of a function to either the flowFrame  or the data matrix itself. The output can the be reconstructed as either a flowSet, a list or a matrix depending on options and the type of objects returned.
fsApply喜欢apply风格flowSet对象的迭代器在研发行为的职能很多,使函数的应用,要么flowFrame或数据矩阵本身。输出可以被重建作为flowSet,返回列表或矩阵的选项和对象的类型而定。


用法----------Usage----------


    fsApply(x, FUN, ..., simplify=TRUE, use.exprs=FALSE)



参数----------Arguments----------

参数:x
flowSet to be used
flowSet要使用


参数:FUN
the function to be applied to each element of x
x的每个元素被应用到的功能


参数:simplify
logical (default: TRUE);  if all true and all objects are flowFrame objects,  a flowSet object will be constructed. If all of the values are of the same type there will be  an attempt to construct a vector or matrix of the appropriate type (e.g. all numeric results will return a matrix).  
逻辑(默认:true),如果所有的真实,所有的对象都是flowFrame对象,flowSet对象将被建造。如果所有的值是相同类型的会有,企图建立一个适当的类型(例如,所有的数值结果将返回一个矩阵)的向量或矩阵。


参数:use.exprs
logical (default: FALSE); should the FUN be applied on the flowFrame object or the expression values.
逻辑(默认:false);应FUN应用flowFrame对象或表达式的值。


参数:...
optional arguments to FUN.
FUN可选参数。


作者(S)----------Author(s)----------


B. Ellis



参见----------See Also----------

apply, sapply
apply,sapply


举例----------Examples----------


fcs.loc <- system.file("extdata",package="flowCore")
file.location <- paste(fcs.loc, dir(fcs.loc), sep="/")
samp <- read.flowSet(file.location[1:3])

#Get summary information about each sample.[获取每个样本的摘要信息。]
fsApply(samp,summary)

#Obtain the median of each parameter in each frame.[获得每个帧的每个参数的中位数。]
fsApply(samp,each_col,median)


转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-9 02:50 , Processed in 0.025140 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表