To select a specific column, you can also type in the name of the dataframe, followed by a $, and then the name of the column you are looking to select. In this example, we will be selecting the payment column of the dataframe. When running this script, R will simplify the result ...
> x[1,3] #错误的取法,注意提取多个对象的方式 Error in x[1, 3] : incorrect number of dimensions # 正确的方式 > x[c(1,3)] $foo [1] 1 2 3 4 $foo1 [1] 3 4 5 6 注意:取子集的方式可以有三种 用名字索引(存在于list或者dataframe中,向量不存在) 用数字索引 用逻辑值索引 > y <- ...
Subsetting spatial dataframe objectsJ.A. Torres
[R-sig-Geo] subsetting SpatialGridDataFrame M Ruser 被引量: 0发表: 0年 The mesothermal gold-lamprophyre association: significance for an accretionary geodynamic setting, supercontinent cycles, and metallogenic processes Archean shoshonitic lamprophyres are cotemporal and cospatial with gold ...
Découvrez comment accéder aux données de votre DataFrame à l'aide du subsetting. Suivez notre tutoriel et apprenez à utiliser la fonction subset() de R dès aujourd'hui !