Re: [R] Sweave

2022-06-26 Thread R. Mark Sharp via R-help
nt. Mark R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant 7526 Meadow Green St. San Antonio, TX 78251 mobile: 210-218-2868 rmsh...@me.com > On Jun 26, 2022, at 9:28 AM, Naresh Gurbuxani > wrote: > > I want to use Sweave, but incorporate some feat

Re: [R] wanting to count instances of values in each cell of a series of simulated symmetric matrices of the same size

2021-06-01 Thread R. Mark Sharp via R-help
attention. I will provide more definitive feedback later. Mark R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant 7526 Meadow Green St. San Antonio, TX 78251 mobile: 210-218-2868 rmsh...@me.com > On Jun 1, 2021, at 10:44 PM, Bert Gunter wrote: > > Come ag

[R] wanting to count instances of values in each cell of a series of simulated symmetric matrices of the same size

2021-06-01 Thread R. Mark Sharp via R-help
= numeric(0)) { kinshipValue <- match(kValue, kinshipValues, nomatch = -1L) if (kinshipValue == -1L) { kinshipValues <- c(kinshipValues, kValue) kinshipCounts[length(kinshipCounts) + 1] <- 1 } else { kinshipCounts[kinshipValue] <- kinshipCounts[kinshipValue] + 1 } list(kinshipVa

Re: [R] File names for mac newby

2020-01-21 Thread R. Mark Sharp via R-help
. Though this absolute path will work, relative paths are often preferred. Mark R. Mark Sharp, Ph.D. rmsh...@me.com > On Jan 21, 2020, at 2:02 PM, Kevin Thorpe wrote: > > You would also need to drop the c: as that is a DOS/Windows thing. > > -- > Kevin E. Thorpe >

Re: [R] Increasing number of observations worsen the regression model

2019-05-26 Thread R. Mark Sharp via R-help
8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_3.6.0 R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant 7526 Meadow G

[R] Writing .nc files

2018-08-28 Thread R. Mark Sharp via R-help
Marco, Always post to the r-help list to have a better chance of finding someone that can help. There is a very nice tutorial that you should have found. See http://geog.uoregon.edu/bartlein/courses/geog490/week04-netCDF.html#create-and-write-a-netcdf-file Mark R. Mark Sharp, Ph.D. Data

Re: [R] help

2018-08-10 Thread R. Mark Sharp via R-help
Marco, The error message indicates that nlon*nlat is 420 and that 1378620/420 has a remainder. For the matrix to form, all rows have to be complete. I am guessing you have at least one value incorrect among nlon, nlat, t or the length of fulldatav. Mark R. Mark Sharp, Ph.D. Data Scientist

Re: [R] Making objects global in a package

2018-07-13 Thread R. Mark Sharp via R-help
I would usually use a function for this. It may not be more R like, but it is more readable to me. If you want, to keep the columns in a file, you could have the function initialize itself on the first call. Mark R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant 7526

Re: [R] require help

2017-12-27 Thread R. Mark Sharp
Yadav, We need some information that is missing in order to help you. PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Mark R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant

Re: [R] Timezone problem with 3.4.2

2017-11-30 Thread R. Mark Sharp
orrectly from the system setting when R is configured with --with-internal-tzcode (the default on macOS). R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant 7526 Meadow Green St. San Antonio, TX 78251 mobile: 210-218-2868 rmsh...@me.com > On Nov 30,

Re: [R] Timezone problem with 3.4.2

2017-11-30 Thread R. Mark Sharp
Dennis, Brian Ripley pointed out shortly after 3.4.2 was released that the timezone was not being set correctly because of last minute changes to MacOS. You will have to install 3.4.3. I am waiting for the native installer, which will likely be out within a few days. Mark R. Mark Sharp, Ph.D

[R] Creating list or numeric vectors out of selected columns of row oriented data

2009-01-27 Thread R. Mark Sharp
','calories_obs' 1,'1/1/2005','1/1/2005',3.26,'a',93 1,'1/1/2005','1/2/2005',3.22,'o',85 1,'1/1/2005','1/3/2005',3.28,'o',91 ... 1,'1/1/2005','12/31/2008',4.38,'h',10