Hi
I am new to R and please let me know how to use across in filter function
my code is below
df1 <-read_sas(read_path(a_in,"adsl.sas7bdat"))
df2 <- filter(df1,across((ITTFL == "Y")))
ITTFL is row and values are Y , N and missing
I am gettting below error
df2 <- filter(df1,across((ITTFL == "Y")))
Error infilter()
:
! Problem while computing..1 = across((ITTFL == "Y"))
.
Caused by error inacross()
:
! object 'ITTFL' not found
But below code is working df2 <- filter(df2,(ITTFL == "Y")) , but what is use of across function
Thank you,
Raja.