Questions tagged [hmisc]

Hmisc is an R package of miscellaneous utility functions.

Hmisc is an package of miscellaneous functions by Frank Harrell. It contains many functions useful for , ting, utility operations, functions for computing and power, importing datasets, imputing , advanced table making, , manipulation, conversion of R objects to code, and recoding variables.

Repositories

Other resources

Related tags

216 questions
0
votes
0 answers

R Hmisc html function

In a Quarto document being prepared for html output, I want to use the Hmisc::describe() function with the html() function, thus: html(describe(diffs$gama_diff)) I get the following error: Error in FUN(X[[i]], ...) : argument is not a character…
Jim Hunter
  • 47
  • 1
  • 4
0
votes
1 answer

Cannot install Hmisc using renv: Installing Formula [1.2-4] ... FAILED

when trying to install Hmisc in R using renv I get the message underneath. Could somebody help me please? I'm using: R version 4.2.0 (2022-04-22) -- "Vigorous Calisthenics", with RStudio 2022.02.3 Build 492, using a Platform:…
menarest
  • 3
  • 4
0
votes
1 answer

Using disk.frame, but still reaching memory limit issue

Problem: I am trying to perform a correlation test on a large dataset: the data.table can exist in memory, but operating on it with Hmisc::rcorr() or corrr::correlate() eventually runs into the memory limit. > Error: cannot allocate vector of size…
Buzz B
  • 75
  • 7
0
votes
0 answers

aregImpute function in R package Hmisc

I am a novice and I am confused about whether aregImpute draws a new bootstrap sample from the original data prior to each time it creates one of the "n.impute" multiply imputed datasets? I know that I need to capture the variability in the original…
Rick H
  • 1
0
votes
1 answer

I cannot get back a variable that was kept out of the imputation model (impute.transcan)

I’m trying to select only one data frame, after performing an imputation with aregImpute and impute.transcan. However, I cannot get back a variable that was kept out of the imputation model. Can somebody tell me how to do it? If we illustrate this…
0
votes
2 answers

export Hmisc::describe output to excel/csv

Is there any way I can export this data to a csv file, instead of typing things in manually. Below is the output from Hmisc describe function: library(Hmisc) # Hmisc describe > Hmisc::describe(data) data 3 Variables 6 …
user11015000
  • 151
  • 1
  • 15
0
votes
0 answers

There is no package called 'foreign'

I'm trying to install the package 'Hmisc' in R but I'm running into an error, shown below: Error: package or namespace load failed for 'Hmisc' in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): there is no package…
RDTJr
  • 185
  • 1
  • 9
0
votes
0 answers

Strange behaviour Hmisc::upData labeling a dataframe

When I want to label the variables of my dataframe using german umlaute or superscript etc... with this code everything works fine: library(dplyr) library(Hmisc) ## with this code everthing works fine # dataframe colnamesiris <- c("a", "b", "c",…
TarJae
  • 72,363
  • 6
  • 19
  • 66
0
votes
2 answers

How to use variable labels in an R data frame

I am trying to assign and then use variable labels and then give my work to a novice R programmer who is experienced with SPSS. When the other programmer uses the data, she will want to make tables. She might not remember what h1 is but will know…
user2738483
  • 147
  • 1
  • 2
  • 11
0
votes
0 answers

R: What is the correct way to provice a fuction argument for the impute fuction (Hmisc)

I have "one of those textbooks" that uses new concepts, synthax and vocabulary without any clarification and is largely inconsistent when providing code examples. Said textbook had has been using the "impute" function in R (package hmisc) a few…
MrTony
  • 264
  • 1
  • 12
0
votes
0 answers

How to correct rcorr() warning in R

I got the warning message, In sqrt(1 - h * h) : NaNs produced, when I run Hmisc::rcorr() for a dataset of 36 rows and 16 columns (all numeric). How can I correct this?
0
votes
1 answer

How to extrapolate/interpolate in R

I am trying to interpolate/extrapolate NA values. The dataset that I have is from a measuring station that measures soil temperature at 4 depths every 5 minutes. In this specific example there are erroneous data (-888.88) at the end of the…
0
votes
1 answer

Is there a R package for computing intraindividual Gamma correlations?

im searching a r package that enables me to compute Goodman and Kruskal's gamma correlations within each subject. I have 2 variables with 16 items each, which I would like to correlate per subject. So far I used the Hmisc package and the…
0
votes
1 answer

How to search for string within variable labels of a data frame, and return a vector with all these variables in R

I have a data frame with a large amount of math and science related items, and I want all math related variables removed. Variable names has no consistent naming for neither math nor science, so it's hard to search and select based variable name.…
Pål Bjartan
  • 793
  • 1
  • 6
  • 18
0
votes
1 answer

Omron NA User Alarms write message from string variable

I'm trying to create a VB.NET script that writes value from existing string variable to User Alarm message. The User Alarms list updates new row as an boolean signal goes true. The User Alarm/s is a list/db or etc. that saves alarmlogs to build in…
Toni
  • 9
  • 5