@@ -254,7 +254,6 @@ setMethod("dtypes",
254
254
# ' @family DataFrame functions
255
255
# ' @rdname columns
256
256
# ' @name columns
257
- # ' @aliases names
258
257
# ' @export
259
258
# ' @examples
260
259
# '\dontrun{
@@ -272,7 +271,6 @@ setMethod("columns",
272
271
})
273
272
})
274
273
275
- # ' @family DataFrame functions
276
274
# ' @rdname columns
277
275
# ' @name names
278
276
setMethod ("names ",
@@ -281,7 +279,6 @@ setMethod("names",
281
279
columns(x )
282
280
})
283
281
284
- # ' @family DataFrame functions
285
282
# ' @rdname columns
286
283
# ' @name names<-
287
284
setMethod(" names<-" ,
@@ -533,14 +530,8 @@ setMethod("distinct",
533
530
dataFrame(sdf )
534
531
})
535
532
536
- # ' @title Distinct rows in a DataFrame
537
- #
538
- # ' @description Returns a new DataFrame containing distinct rows in this DataFrame
539
- # '
540
- # ' @family DataFrame functions
541
- # ' @rdname unique
533
+ # ' @rdname distinct
542
534
# ' @name unique
543
- # ' @aliases distinct
544
535
setMethod ("unique ",
545
536
signature(x = " DataFrame" ),
546
537
function (x ) {
@@ -557,7 +548,7 @@ setMethod("unique",
557
548
# '
558
549
# ' @family DataFrame functions
559
550
# ' @rdname sample
560
- # ' @aliases sample_frac
551
+ # ' @name sample
561
552
# ' @export
562
553
# ' @examples
563
554
# '\dontrun{
@@ -579,7 +570,6 @@ setMethod("sample",
579
570
dataFrame(sdf )
580
571
})
581
572
582
- # ' @family DataFrame functions
583
573
# ' @rdname sample
584
574
# ' @name sample_frac
585
575
setMethod ("sample_frac ",
@@ -589,16 +579,15 @@ setMethod("sample_frac",
589
579
sample(x , withReplacement , fraction )
590
580
})
591
581
592
- # ' Count
582
+ # ' nrow
593
583
# '
594
584
# ' Returns the number of rows in a DataFrame
595
585
# '
596
586
# ' @param x A SparkSQL DataFrame
597
587
# '
598
588
# ' @family DataFrame functions
599
- # ' @rdname count
589
+ # ' @rdname nrow
600
590
# ' @name count
601
- # ' @aliases nrow
602
591
# ' @export
603
592
# ' @examples
604
593
# '\dontrun{
@@ -614,14 +603,8 @@ setMethod("count",
614
603
callJMethod(x @ sdf , " count" )
615
604
})
616
605
617
- # ' @title Number of rows for a DataFrame
618
- # ' @description Returns number of rows in a DataFrames
619
- # '
620
606
# ' @name nrow
621
- # '
622
- # ' @family DataFrame functions
623
607
# ' @rdname nrow
624
- # ' @aliases count
625
608
setMethod ("nrow ",
626
609
signature(x = " DataFrame" ),
627
610
function (x ) {
@@ -870,7 +853,6 @@ setMethod("toRDD",
870
853
# ' @param x a DataFrame
871
854
# ' @return a GroupedData
872
855
# ' @seealso GroupedData
873
- # ' @aliases group_by
874
856
# ' @family DataFrame functions
875
857
# ' @rdname groupBy
876
858
# ' @name groupBy
@@ -896,7 +878,6 @@ setMethod("groupBy",
896
878
groupedData(sgd )
897
879
})
898
880
899
- # ' @family DataFrame functions
900
881
# ' @rdname groupBy
901
882
# ' @name group_by
902
883
setMethod ("group_by ",
@@ -913,15 +894,13 @@ setMethod("group_by",
913
894
# ' @family DataFrame functions
914
895
# ' @rdname agg
915
896
# ' @name agg
916
- # ' @aliases summarize
917
897
# ' @export
918
898
setMethod ("agg ",
919
899
signature(x = " DataFrame" ),
920
900
function (x , ... ) {
921
901
agg(groupBy(x ), ... )
922
902
})
923
903
924
- # ' @family DataFrame functions
925
904
# ' @rdname agg
926
905
# ' @name summarize
927
906
setMethod ("summarize ",
@@ -1092,7 +1071,6 @@ setMethod("[", signature(x = "DataFrame", i = "Column"),
1092
1071
# ' @family DataFrame functions
1093
1072
# ' @rdname subset
1094
1073
# ' @name subset
1095
- # ' @aliases [
1096
1074
# ' @family subsetting functions
1097
1075
# ' @examples
1098
1076
# ' \dontrun{
@@ -1216,7 +1194,7 @@ setMethod("selectExpr",
1216
1194
# ' @family DataFrame functions
1217
1195
# ' @rdname withColumn
1218
1196
# ' @name withColumn
1219
- # ' @aliases mutate transform
1197
+ # ' @seealso \link{rename} \link{mutate}
1220
1198
# ' @export
1221
1199
# ' @examples
1222
1200
# '\dontrun{
@@ -1231,7 +1209,6 @@ setMethod("withColumn",
1231
1209
function (x , colName , col ) {
1232
1210
select(x , x $ " *" , alias(col , colName ))
1233
1211
})
1234
-
1235
1212
# ' Mutate
1236
1213
# '
1237
1214
# ' Return a new DataFrame with the specified columns added.
@@ -1240,9 +1217,9 @@ setMethod("withColumn",
1240
1217
# ' @param col a named argument of the form name = col
1241
1218
# ' @return A new DataFrame with the new columns added.
1242
1219
# ' @family DataFrame functions
1243
- # ' @rdname withColumn
1220
+ # ' @rdname mutate
1244
1221
# ' @name mutate
1245
- # ' @aliases withColumn transform
1222
+ # ' @seealso \link{rename} \link{withColumn}
1246
1223
# ' @export
1247
1224
# ' @examples
1248
1225
# '\dontrun{
@@ -1273,17 +1250,15 @@ setMethod("mutate",
1273
1250
})
1274
1251
1275
1252
# ' @export
1276
- # ' @family DataFrame functions
1277
- # ' @rdname withColumn
1253
+ # ' @rdname mutate
1278
1254
# ' @name transform
1279
- # ' @aliases withColumn mutate
1280
1255
setMethod ("transform ",
1281
1256
signature(`_data` = " DataFrame" ),
1282
1257
function (`_data` , ... ) {
1283
1258
mutate(`_data` , ... )
1284
1259
})
1285
1260
1286
- # ' WithColumnRenamed
1261
+ # ' rename
1287
1262
# '
1288
1263
# ' Rename an existing column in a DataFrame.
1289
1264
# '
@@ -1292,8 +1267,9 @@ setMethod("transform",
1292
1267
# ' @param newCol The new column name.
1293
1268
# ' @return A DataFrame with the column name changed.
1294
1269
# ' @family DataFrame functions
1295
- # ' @rdname withColumnRenamed
1270
+ # ' @rdname rename
1296
1271
# ' @name withColumnRenamed
1272
+ # ' @seealso \link{mutate}
1297
1273
# ' @export
1298
1274
# ' @examples
1299
1275
# '\dontrun{
@@ -1316,17 +1292,9 @@ setMethod("withColumnRenamed",
1316
1292
select(x , cols )
1317
1293
})
1318
1294
1319
- # ' Rename
1320
- # '
1321
- # ' Rename an existing column in a DataFrame.
1322
- # '
1323
- # ' @param x A DataFrame
1324
- # ' @param newCol A named pair of the form new_column_name = existing_column
1325
- # ' @return A DataFrame with the column name changed.
1326
- # ' @family DataFrame functions
1327
- # ' @rdname withColumnRenamed
1295
+ # ' @param newColPair A named pair of the form new_column_name = existing_column
1296
+ # ' @rdname rename
1328
1297
# ' @name rename
1329
- # ' @aliases withColumnRenamed
1330
1298
# ' @export
1331
1299
# ' @examples
1332
1300
# '\dontrun{
@@ -1371,7 +1339,6 @@ setClassUnion("characterOrColumn", c("character", "Column"))
1371
1339
# ' @family DataFrame functions
1372
1340
# ' @rdname arrange
1373
1341
# ' @name arrange
1374
- # ' @aliases orderby
1375
1342
# ' @export
1376
1343
# ' @examples
1377
1344
# '\dontrun{
@@ -1395,8 +1362,8 @@ setMethod("arrange",
1395
1362
dataFrame(sdf )
1396
1363
})
1397
1364
1398
- # ' @family DataFrame functions
1399
1365
# ' @rdname arrange
1366
+ # ' @name arrange
1400
1367
# ' @export
1401
1368
setMethod ("arrange ",
1402
1369
signature(x = " DataFrame" , col = " character" ),
@@ -1427,9 +1394,9 @@ setMethod("arrange",
1427
1394
do.call(" arrange" , c(x , jcols ))
1428
1395
})
1429
1396
1430
- # ' @family DataFrame functions
1431
1397
# ' @rdname arrange
1432
- # ' @name orderby
1398
+ # ' @name orderBy
1399
+ # ' @export
1433
1400
setMethod ("orderBy ",
1434
1401
signature(x = " DataFrame" , col = " characterOrColumn" ),
1435
1402
function (x , col ) {
@@ -1492,6 +1459,7 @@ setMethod("where",
1492
1459
# ' @family DataFrame functions
1493
1460
# ' @rdname join
1494
1461
# ' @name join
1462
+ # ' @seealso \link{merge}
1495
1463
# ' @export
1496
1464
# ' @examples
1497
1465
# '\dontrun{
@@ -1528,9 +1496,7 @@ setMethod("join",
1528
1496
dataFrame(sdf )
1529
1497
})
1530
1498
1531
- # '
1532
1499
# ' @name merge
1533
- # ' @aliases join
1534
1500
# ' @title Merges two data frames
1535
1501
# ' @param x the first data frame to be joined
1536
1502
# ' @param y the second data frame to be joined
@@ -1550,6 +1516,7 @@ setMethod("join",
1550
1516
# ' outer join will be returned.
1551
1517
# ' @family DataFrame functions
1552
1518
# ' @rdname merge
1519
+ # ' @seealso \link{join}
1553
1520
# ' @export
1554
1521
# ' @examples
1555
1522
# '\dontrun{
@@ -1671,7 +1638,7 @@ generateAliasesForIntersectedCols <- function (x, intersectedColNames, suffix) {
1671
1638
cols
1672
1639
}
1673
1640
1674
- # ' UnionAll
1641
+ # ' rbind
1675
1642
# '
1676
1643
# ' Return a new DataFrame containing the union of rows in this DataFrame
1677
1644
# ' and another DataFrame. This is equivalent to `UNION ALL` in SQL.
@@ -1681,7 +1648,7 @@ generateAliasesForIntersectedCols <- function (x, intersectedColNames, suffix) {
1681
1648
# ' @param y A Spark DataFrame
1682
1649
# ' @return A DataFrame containing the result of the union.
1683
1650
# ' @family DataFrame functions
1684
- # ' @rdname unionAll
1651
+ # ' @rdname rbind
1685
1652
# ' @name unionAll
1686
1653
# ' @export
1687
1654
# ' @examples
@@ -1700,13 +1667,11 @@ setMethod("unionAll",
1700
1667
})
1701
1668
1702
1669
# ' @title Union two or more DataFrames
1703
- # '
1704
1670
# ' @description Returns a new DataFrame containing rows of all parameters.
1705
1671
# '
1706
- # ' @family DataFrame functions
1707
1672
# ' @rdname rbind
1708
1673
# ' @name rbind
1709
- # ' @aliases unionAll
1674
+ # ' @export
1710
1675
setMethod ("rbind ",
1711
1676
signature(... = " DataFrame" ),
1712
1677
function (x , ... , deparse.level = 1 ) {
@@ -1795,7 +1760,6 @@ setMethod("except",
1795
1760
# ' @family DataFrame functions
1796
1761
# ' @rdname write.df
1797
1762
# ' @name write.df
1798
- # ' @aliases saveDF
1799
1763
# ' @export
1800
1764
# ' @examples
1801
1765
# '\dontrun{
@@ -1828,7 +1792,6 @@ setMethod("write.df",
1828
1792
callJMethod(df @ sdf , " save" , source , jmode , options )
1829
1793
})
1830
1794
1831
- # ' @family DataFrame functions
1832
1795
# ' @rdname write.df
1833
1796
# ' @name saveDF
1834
1797
# ' @export
@@ -1891,7 +1854,7 @@ setMethod("saveAsTable",
1891
1854
callJMethod(df @ sdf , " saveAsTable" , tableName , source , jmode , options )
1892
1855
})
1893
1856
1894
- # ' describe
1857
+ # ' summary
1895
1858
# '
1896
1859
# ' Computes statistics for numeric columns.
1897
1860
# ' If no columns are given, this function computes statistics for all numerical columns.
@@ -1901,9 +1864,8 @@ setMethod("saveAsTable",
1901
1864
# ' @param ... Additional expressions
1902
1865
# ' @return A DataFrame
1903
1866
# ' @family DataFrame functions
1904
- # ' @rdname describe
1867
+ # ' @rdname summary
1905
1868
# ' @name describe
1906
- # ' @aliases summary
1907
1869
# ' @export
1908
1870
# ' @examples
1909
1871
# '\dontrun{
@@ -1923,8 +1885,7 @@ setMethod("describe",
1923
1885
dataFrame(sdf )
1924
1886
})
1925
1887
1926
- # ' @family DataFrame functions
1927
- # ' @rdname describe
1888
+ # ' @rdname summary
1928
1889
# ' @name describe
1929
1890
setMethod ("describe ",
1930
1891
signature(x = " DataFrame" ),
@@ -1934,11 +1895,6 @@ setMethod("describe",
1934
1895
dataFrame(sdf )
1935
1896
})
1936
1897
1937
- # ' @title Summary
1938
- # '
1939
- # ' @description Computes statistics for numeric columns of the DataFrame
1940
- # '
1941
- # ' @family DataFrame functions
1942
1898
# ' @rdname summary
1943
1899
# ' @name summary
1944
1900
setMethod ("summary ",
@@ -1966,7 +1922,6 @@ setMethod("summary",
1966
1922
# ' @family DataFrame functions
1967
1923
# ' @rdname nafunctions
1968
1924
# ' @name dropna
1969
- # ' @aliases na.omit
1970
1925
# ' @export
1971
1926
# ' @examples
1972
1927
# '\dontrun{
@@ -1993,7 +1948,6 @@ setMethod("dropna",
1993
1948
dataFrame(sdf )
1994
1949
})
1995
1950
1996
- # ' @family DataFrame functions
1997
1951
# ' @rdname nafunctions
1998
1952
# ' @name na.omit
1999
1953
# ' @export
@@ -2019,9 +1973,7 @@ setMethod("na.omit",
2019
1973
# ' type are ignored. For example, if value is a character, and
2020
1974
# ' subset contains a non-character column, then the non-character
2021
1975
# ' column is simply ignored.
2022
- # ' @return A DataFrame
2023
1976
# '
2024
- # ' @family DataFrame functions
2025
1977
# ' @rdname nafunctions
2026
1978
# ' @name fillna
2027
1979
# ' @export
0 commit comments