Closed shanmdphd closed 4 years ago
아래 코드 작성시
경고메시지(들):
In sub(., "H", "", time) :
인자 'pattern'는 반드시 길이가 1 보다 커야 하고, 오로지 첫번째 요소만이 사용될 것입니다
이라는 오류가 뜹니다
Atime <- read_excel("C:/mante111/R/CRF NCA 분석 데이터 만들기/atime.xlsx") %>%
mutate(atime = ymd_hm(`atime`)) %>%
mutate(LastDosingTime = ymd_hm(LastDosingTime)) %>%
mutate(dif = difftime(atime, LastDosingTime, units = "hours")) %>%
mutate(dif_ifelse= ifelse(dif < 0, 0, dif)) %>%
sub("H", '', time)
Atime <- read_excel("C:/mante111/R/CRF NCA 분석 데이터 만들기/atime.xlsx") %>% # CHECK: 영어 폴더이름 쓰세요.
mutate(atime = ymd_hm(`atime`)) %>%
mutate(LastDosingTime = ymd_hm(LastDosingTime)) %>%
mutate(dif = difftime(atime, LastDosingTime, units = "hours")) %>%
mutate(dif_ifelse= ifelse(dif < 0, 0, dif)) %>%
mutate(time = sub("H", '', time)) # CHECK: 이부분 수정하세요.
@mante111 님,
Verapamil / Moxifloxacin PK model 을 찾아보세요.