我使用以下代码:
library(FactoMineR)
women_work=read.table("http://factominer.free.fr/classical-methods/datasets/women_work.txt", header=TRUE, row.names=1, sep="\t")
当我使用以下命令时: res.ca.col = CA(women_work [,1:3]) 我得到了图表。但是,当我跑:
> res.ca.rows = CA(women_work[,1:3], invisible="col")
Error in CA(women_work[, 1:3], invisible = "col") :
unused argument (invisible = "col")
我收到错误。
相同> res.ca.col = CA(women_work[,1:3], invisible="row")
Error in CA(women_work[, 1:3], invisible = "row") :
unused argument (invisible = "row")
答案 0 :(得分:1)
invisible
不是CA
函数的有效参数,但它适用于plot.CA
来自FactoMineR
文档:
CA Usage:
CA(X, ncp = 5, row.sup = NULL, col.sup = NULL,
quanti.sup=NULL, quali.sup = NULL, graph = TRUE,
axes = c(1,2), row.w = NULL, excl=NULL)
和
plot.CA Usage:
plot(x, axes = c(1, 2),
xlim = NULL, ylim = NULL,
invisible = c("none","row","col","row.sup","col.sup","quali.sup"),
...etc. )
x
中plot()
CA
会占用res.ca.rows = CA(women_work[,1:3])
plot(res.ca.rows, invisible="col")
个对象。所以你会写一些类似的东西:
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:
[NSURL URLWithString:@"https://www.youtube.com/watch?v=1cuMAeGOCng"]];
[request setValue:@"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Safari/601.1.42"
forHTTPHeaderField:@"User-Agent"];
session = [NSURLSession sessionWithConfiguration:
[NSURLSessionConfiguration defaultSessionConfiguration]];
NSURLSessionTask *task = [session dataTaskWithRequest:request completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error)
{
NSString * text = [[NSString alloc] initWithData: data encoding: NSUTF8StringEncoding];
NSLog(@"Data = %@",text);
}];
[task resume];