Re: [R] Howto view function's source code of an installed package

2010-09-28 Thread Mark Miller
I justed wanted to provide a description of how I was able to view source code of a function. First download the Program R package containing the function. Specifically, download the file that ends in tar.gz. This is a compressed file. Expand the compressed file using, for example, WinZip.

[R] replacing NA in character column

2009-10-28 Thread Mark Miller
(‘Age’) column using the following line: s1[is.na(s1[,3]), 3] - 0 What code can I use to replace the NA in the third row of the second (‘Lastname’) column with ? Thank you in advance for any advice. Mark Miller Gainesville, Florida

[R] Logistic regression with weights?

2010-02-12 Thread Mark Miller
? Thanks for any help. Mark Miller Gainesville, Florida # school program style count new.data - matrix(c( 1, 1, s , 1, 1, 1, s , 1, 1, 1, t , 1, 1, 1, t , 1, 1, 1, t , 1, 1, 1, t , 1, 1, 1, c, 1, 1, 1, c, 1, 1, 2, s , 1, 1, 2, s , 1, 1, 2, s , 1, 1, 2, s , 1, 1, 2, t , 1, 1, 2, t , 1, 1, 2, t

[R] How to bin x,y,z vectors into matrix?

2014-07-19 Thread Mark Miller
This is probably a basic question, but I haven't been able to Google anything helpful after trying for days. I have an R dataframe with x,y,z tuples, where z is a response to x and y and can be modeled as a surface. head(temp) x yz 1 36.55411 965.7779

[R] see rcurl contents before they're sent?

2014-11-20 Thread Mark Miller
I am trying to use the R / solr integration from https://github.com/datadolphyn/R/blob/master/r_solr_integration.R I have the query function working, but I'm having trouble with the post functions, which uses rcurl. Is it possible to see the string that rcurl is going to send to a webserver