[R] Performance Analytics Modigliani Code help
Hi all, I am researching performance of funds in the FTSE100 and am using the Modigliani function in the PerformanceAnalytics package. I have attached my raw data for your reference. When I try to use the Modigliani code as follows: Modigliani (a,b,c=0) where a is my data set "1000 RANDOM...", b is the data of FTSE "FTSE ALLSHARE..." returns, c is the risk free rate "LIBOR". This code returns the data attached "Modigliani from R" which seems to be a calculation for only the first 2 columns of my data set. I would have expected to have R return the same amount of rows and columns when using the Modigliani function i.e 108 rows and 1001 columns. Is there something I need to add to the code to have it calculate for each row/column? Thanks, Jessy *very confused student* __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Problem installing ggplot2 in R 3.2.3
Hi, I am trying to install ggplot2 in R software but Im getting the following error message: Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : there is no package called ‘Rcpp’ Error: package or namespace load failed for ‘ggplot2’ Please help me with this issue, whats to be done to rectify it. Thanks *Dr. Jesitha Abdul Salam* *Postdoctoral Researcher* *School of Marine Sciences* *Cochin University of Science and Technology* *Kerala-682016* [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] decomposing a single intact vector
Dear all, I have a vector of length 1 but within this vector there are 9 elements vectorNOcorrection [1] (O, O, O, H, L, O, O, O, O) can someone help me with how I can have it as with 9 element separated such that it will have length 9 as O, O, O, H,L, O, O, O, O Kind regards, Jessy [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] ranking a vector in R
Hello, May someone help me with how in R I can rank a vector from highest to lowest. i.e rank 1 (smallest rank) is given to the highest value instead of the usual way that it get's the highest rank. Regards, Jessy [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] C++ source code for MANOVA
Dear all, Can someone help me with a C++ source code that underlies MANOVA (Multivariate Analysis of Variance) in R Kind regards, Jes [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
[R] Generating missingness on SNP data
Dear all, I generated a dataset with 500 unrelated individuals and 10 biallelic SNPs. From this dataset,I would like to create data with 5% missingness on genotype information at random and also data with 5% genotyping error. Can someone help me with how I can do it. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.