Closed DishengHuang closed 4 months ago
@DishengHuang does below code works??
library(teal.modules.clinical)
library(tern)
library(dplyr)
library(haven)
data <- teal_data()
data <- within(data,
{
adsl <- read_xpt("ADaM/adsl.xpt")
adae <- read_xpt("ADaM/adae.xpt")
adsl <- as.data.frame(adsl)
adae <- as.data.frame(adae)
}
)
data
adsl and adae need to be created within data
(teal_data
object) so that they can be used. teal_data
does not have an access to objects created in the .GlobalEnv
.
Oh yes, this works for me. Thank you for the guidance
What happened?
When I read the xpt file (old version of CDISC) into R 4.4.0, and I get this error - <qenv.error: object 'data1' not found when evaluating qenv code: data1 <- as.data.frame(data1)>[Bug]:
Here is my code: library(teal.modules.clinical) library(tern) library(dplyr) library(haven)
adsl <- read_xpt("ADaM/adsl.xpt") adae <- read_xpt("ADaM/adae.xpt")
data <- teal_data()
data <- within(data, { adsl <- as.data.frame(adsl) adae <- as.data.frame(adae) } ) data
sessionInfo()
Relevant log output
Code of Conduct
Contribution Guidelines
Security Policy