[R] prop.trend.test question

2023-09-24 Thread tgs77m--- via R-help
Colleagues, The code for prop.trend.test is given by: function (x, n, score = seq_along(x)) { method <- "Chi-squared Test for Trend in Proportions" dname <- paste(deparse1(substitute(x)), "out of", deparse1(substitute(n)), ",\n using scores:", paste(score, collapse = " "))

[R] data.table installation on intel macOS Ventura 13.6

2023-09-24 Thread Naresh Gurbuxani
My data.table installation uses single thread only. Instruction on this site do not apply to Ventura 13.6 https://github.com/Rdatatable/data.table/wiki/Installation Has anyone got data.table working with multi-thread? Thanks, Naresh __

Re: [R] RQuantLib installation problem

2023-09-24 Thread David Winsemius
On 9/24/23 08:23, Ivan Krylov wrote: On Sun, 24 Sep 2023 02:19:20 + Naresh Gurbuxani wrote: install.packages("RQuantLib", repos = "https://cran.r-project.org;) Installing package into ‘/usr/local/lib/R/4.1/site-library’ (as ‘lib’ is unspecified) trying URL

Re: [R] Odd result

2023-09-24 Thread avi.e.gross
David, You have choices depending on your situation and plans. Obviously the ideal solution is to make any CSV you save your EXCEL data in to have exactly what you want. So if your original EXCEL file contains things like a blank character down around row 973, get rid of it or else all lines

Re: [R] RQuantLib installation problem

2023-09-24 Thread Ivan Krylov
On Sun, 24 Sep 2023 02:19:20 + Naresh Gurbuxani wrote: > > install.packages("RQuantLib", repos = "https://cran.r-project.org;) > Installing package into ‘/usr/local/lib/R/4.1/site-library’ > (as ‘lib’ is unspecified) > trying URL >

Re: [R] Odd result

2023-09-24 Thread Ben Bolker
For what it's worth the janitor::remove_empty() (which removes all-NA rows by default, can be set to remove columns instead) can be useful for this kind of cleanup. On 2023-09-24 5:58 a.m., Michael Dewey wrote: Dear David To get the first 46 rows just do KurtzData[1:43,] However really

Re: [R] Odd result

2023-09-24 Thread Ebert,Timothy Aaron
I tend to keep data in Excel. The reason is that I can keep data and analysis output in one file. A part of this is that I tend to use SAS where I get abundant output. One way that this type of result happens is with junk in the file. Someone might put a space in a cell or a period. Such

Re: [R] Odd result

2023-09-24 Thread Duncan Murdoch
On 23/09/2023 6:55 p.m., Parkhurst, David wrote: With help from several people, I used file.choose() to get my file name, and read.csv() to read in the file as KurtzData. Then when I print KurtzData, the last several lines look like this: 39 5/31/22 16.0 3411.75525

Re: [R] Odd result

2023-09-24 Thread Michael Dewey
Dear David To get the first 46 rows just do KurtzData[1:43,] However really you want to find out why it happened. It looks as though the .csv file you read has lots of blank lines at the end. I would open it in an editor to check that. Michael On 23/09/2023 23:55, Parkhurst, David wrote:

Re: [R] How to import an excel data file

2023-09-24 Thread Rainer Hurling
Dear David, Am 23.09.23 um 01:10 schrieb Parkhurst, David: I know I should save it as a .csv file, which I have done. I�m told I should use the read_excel() function from the readxl package. My question is, how do I express the location of the file. The file is named KurtzData.csv. Its

[R] Odd result

2023-09-24 Thread Parkhurst, David
With help from several people, I used file.choose() to get my file name, and read.csv() to read in the file as KurtzData. Then when I print KurtzData, the last several lines look like this: 39 5/31/22 16.0 3411.75525 0.0201 0.0214 7.00 40 6/28/22 2:00 PM 0.0