search for: kanecap

Displaying 20 results from an estimated 23 matches for "kanecap".

2006 Jun 14
2
Package naming best practices
...lready decided that the name will have two parts, 'portfolio' and 'sim', but can't decide between 'portfolioSim' and 'portfolio.sim'. Is there any good reason to choose one over the other? Thanks in advance, Jeff -- Jeff Enos Kane Capital Management jeff at kanecap.com
2010 Jan 09
4
parsing pdf files
I have a pdf file that I would like to parse into R: http://www.williams.edu/Registrar/geninfo/faculty.pdf For now, I open the file in Acrobat by hand, then save it "as text" and then use readLines(). That works fine but a) I am concerned that some information may be lost and b) I may be doing this a lot, so I would rather have R grab the information from the pdf file directly. So: is
2005 Nov 01
4
S4 classes in existing packages
R-devel, I'm interested in looking at some examples of existing R packages that rely heavily on S4 classes to get a feel for varying styles and package organization techniques. Could you recommend any packages that might serve as a good starting point? Thanks in advance, Jeff
2005 Nov 01
4
S4 classes in existing packages
R-devel, I'm interested in looking at some examples of existing R packages that rely heavily on S4 classes to get a feel for varying styles and package organization techniques. Could you recommend any packages that might serve as a good starting point? Thanks in advance, Jeff
2010 Aug 26
3
reliability of R-Forge?
How reliable is R-Forge? http://r-forge.r-project.org/ It is down now (for me). Reporting "R-Forge Could Not Connect to Database: " I have just started to use it for a project. It has been down for several hours (at least) on different occasions over the last couple of days. Is that common? Will it be more stable soon? Apologies if this is not an appropriate question for R-help. Dave
2010 Aug 26
3
reliability of R-Forge?
How reliable is R-Forge? http://r-forge.r-project.org/ It is down now (for me). Reporting "R-Forge Could Not Connect to Database: " I have just started to use it for a project. It has been down for several hours (at least) on different occasions over the last couple of days. Is that common? Will it be more stable soon? Apologies if this is not an appropriate question for R-help. Dave
2004 Sep 15
5
replacing NA's with 0 in a dataframe for specified columns
I know that there must be a cool way of doing this, but I can't think of it. Let's say I have an dataframe with NA's. > x <- data.frame(a = c(0,1,2,NA), b = c(0,NA,1,2), c = c(NA, 0, 1, 2)) > x a b c 1 0 0 NA 2 1 NA 0 3 2 1 1 4 NA 2 2 > I know it is easy to replace all the NA's with zeroes. > x[is.na(x)] <- 0 > x a b c 1 0 0 0 2 1 0 0 3 2 1
2005 May 10
4
summary statistics for lists of matrices or dataframes
Is there a simple way to calculate summary statistics for all the matrices or dataframes in a list? For example: > z <- list(matrix(c(2,2,2,2), ncol = 2), matrix(c(4,4,4,4), ncol = 2)) > z [[1]] [,1] [,2] [1,] 2 2 [2,] 2 2 [[2]] [,1] [,2] [1,] 4 4 [2,] 4 4 > I would like to calculate, for example, the mean value for each cell. I can do that the hard
2006 Mar 06
0
New package 'portfolio'
...ge in R for analysing equity portfolios. Version 0.2-0 is now available on CRAN. To take a look, you can: > install.packages("portfolio") ... > vignette("portfolio") and play around. Those who would just like to check out an introduction can simply look at: http://www.kanecap.com/R/portfolio/portfolio.pdf This is the first, very rough version of a package that we hope to build and extend over the coming months. Our ambitions for this project are not small. Hundreds of professionals around the world use R for portfolio analysis but, right now, we all use our own individ...
2006 Mar 06
0
New package 'portfolio'
...ge in R for analysing equity portfolios. Version 0.2-0 is now available on CRAN. To take a look, you can: > install.packages("portfolio") ... > vignette("portfolio") and play around. Those who would just like to check out an introduction can simply look at: http://www.kanecap.com/R/portfolio/portfolio.pdf This is the first, very rough version of a package that we hope to build and extend over the coming months. Our ambitions for this project are not small. Hundreds of professionals around the world use R for portfolio analysis but, right now, we all use our own individ...
2006 Apr 25
1
Daily package check and --install=no
...ge marked like this will not have its test cases run each night. Are there other checks that are omitted? How, if at all, are such install flags related to the parameters one can pass R CMD check, such as --no-install, --no-test, etc.? Thanks, Jeff -- Jeff Enos Kane Capital Management jeff at kanecap.com
2006 Jun 08
1
NAs in unsplit factor
...where 'f' is c(1,NA). > unsplit(split(c(1,2), c(1,NA)), c(1,NA)) [1] 1 0 I noticed that the call to vector in unsplit gives us 0 as the 2nd element of the result. Is this the intended result, as opposed to NA? Thanks for your help, Jeff -- Jeff Enos Kane Capital Management jeff at kanecap.com
2009 Dec 15
1
R question type in Moodle
Moodle (www.moodle.org) is an open source course management system, a competitor to Blackboard. I am writing several hundred R questions that will be used within the quiz module in Moodle. Unfortunately, Moodle does not have a built in question type for R. You can read about the different questions types in Moodle here:
2006 Aug 28
1
Affiliation Reporting Standards. was: Re: reshape scaling with large numbers of times/rows
After a question on R, Prof Brian Ripley writes: > However, you did not give your affiliation and I do not like giving free > consultancy to undisclosed commercial organizations. Please in future use > a proper signature block so that helpers are aware of your provenance. I have one question and one comment. Question: Are there specific standards about this for R mailing lists? I
2005 May 05
2
Varying as.Date performance
R-devel, The performance of as.Date differs by a large degree between one of my machines with glibc 2.3.2: > system.time(x <- as.Date(rep("01-01-2005", 100000), format = "%m-%d-%Y")) [1] 1.17 0.00 1.18 0.00 0.00 and a comparable machine with glibc 2.3.3: > system.time(x <- as.Date(rep("01-01-2005", 100000), format = "%m-%d-%Y")) [1] 31.20
2009 Dec 11
1
Sources for open sourced homework questions for R?
Hi, I am teaching a one month class in applied statistics and want to bring my students up to speed in R without devoting much/any lecture time to R instruction. I think that the best way to do this is to provide them with a lot of R questions for homework. These questions would be numerous (there is a lot of material to cover), go from very simple to somewhat complex, and focus on all the
2006 Oct 23
0
New version of 'portfolio' and new related packages
A new version of package 'portfolio' is now available on CRAN. Also available are new packages 'backtest', for basic spread-based hypothesis testing, and 'portfolioSim', a general framework for portfolio simulation. Last March we wrote R-packages regarding our desire to build a suite of tools for portfolio analytics in R:
2007 Jun 05
0
New Package on Lancet Surveys of Iraq Mortality
Hello, I have placed a package on CRAN about two surveys of mortality in Iraq that were published in the Lancet. http://cran.at.r-project.org/src/contrib/Descriptions/lancet.iraqmortality.html > install.packages("lancet.iraqmortality") ... > library(lancet.iraqmortality) Loading required package: foreign > ?lancet.iraqmortality > vignette("mortality") This is
2005 Jan 11
1
Nested ifelse - is there a better way?
Dear r-help, I'm interested in finding a better way to add a column to a data frame when calculating the new column requires more than one conditional. For example, if I wanted to associate a character string in {"Pos","Neg","Zero"} with each number in the following data frame: > d <- data.frame(num = -2:2) > d num 1 -2 2 -1 3 0 4 1 5 2 I
2007 Jun 05
0
New Package on Lancet Surveys of Iraq Mortality
Hello, I have placed a package on CRAN about two surveys of mortality in Iraq that were published in the Lancet. http://cran.at.r-project.org/src/contrib/Descriptions/lancet.iraqmortality.html > install.packages("lancet.iraqmortality") ... > library(lancet.iraqmortality) Loading required package: foreign > ?lancet.iraqmortality > vignette("mortality") This is