{"id":3897,"date":"2023-07-14T21:31:01","date_gmt":"2023-07-14T21:31:01","guid":{"rendered":"https:\/\/statorials.org\/ko\/r-ifelse-%e1%84%89%e1%85%ae%e1%86%ba%e1%84%8c%e1%85%a1-%e1%84%82%e1%85%a1%e1%86%af%e1%84%8d%e1%85%a1\/"},"modified":"2023-07-14T21:31:01","modified_gmt":"2023-07-14T21:31:01","slug":"r-ifelse-%e1%84%89%e1%85%ae%e1%86%ba%e1%84%8c%e1%85%a1-%e1%84%82%e1%85%a1%e1%86%af%e1%84%8d%e1%85%a1","status":"publish","type":"post","link":"https:\/\/statorials.org\/ko\/r-ifelse-%e1%84%89%e1%85%ae%e1%86%ba%e1%84%8c%e1%85%a1-%e1%84%82%e1%85%a1%e1%86%af%e1%84%8d%e1%85%a1\/","title":{"rendered":"A: ifelse()\uac00 \ub0a0\uc9dc\ub97c \uc22b\uc790\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud569\ub2c8\ub2e4."},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\uae30\ubcf8 R\uc758 <strong>ifelse()<\/strong> \ud568\uc218\ub294 \uae30\ubcf8\uc801\uc73c\ub85c \ub0a0\uc9dc \uac1d\uccb4\ub97c \uc22b\uc790 \uac1d\uccb4\ub85c \ubcc0\ud658\ud569\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\uc774\ub7ec\ud55c \uc77c\uc774 \ubc1c\uc0dd\ud558\uc9c0 \uc54a\ub3c4\ub85d \ud558\ub824\uba74 \ub2e4\uc74c \ubc29\ubc95 \uc911 \ud558\ub098\ub97c \ub300\uc548\uc73c\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>\ubc29\ubc95 1: Base R\uc5d0\uc11c as.character() \uc0ac\uc6a9<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>df$date &lt;- as. <span style=\"color: #3366ff;\">Date<\/span> (ifelse(df$date &lt; ' <span style=\"color: #ff0000;\">2022-01-20<\/span> ',\n                   as. <span style=\"color: #3366ff;\">character<\/span> (df$date+5),\n                   as. <span style=\"color: #3366ff;\">character<\/span> (df$date)))<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>\ubc29\ubc95 2: dplyr\uc5d0\uc11c if_else() \uc0ac\uc6a9<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>df$date &lt;- if_else(df$date &lt; ' <span style=\"color: #ff0000;\">2022-01-20<\/span> ', df$date+5, df$date)<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>\ubc29\ubc95 3: data.table\uc5d0\uc11c fifelse() \uc0ac\uc6a9<\/strong><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>df$date &lt;- fifelse(df$date &lt; ' <span style=\"color: #ff0000;\">2022-01-20<\/span> ', df$date+5, df$date)<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">\ub2e4\uc74c \uc608\uc5d0\uc11c\ub294 R\uc758 \ub2e4\uc74c \ub370\uc774\ud130 \ud504\ub808\uc784\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc2e4\uc81c\ub85c \uac01 \uba54\uc11c\ub4dc\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create data frame<\/span>\ndf &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (date=as. <span style=\"color: #3366ff;\">Date<\/span> (c('2022-01-05', '2022-01-17', '2022-01-22',\n                        '2022-01-23', '2022-01-29', '2022-02-13')),\n                 sales=c(22, 35, 24, 20, 16, 19))\n\n<span style=\"color: #008080;\">#view data frame\n<\/span>df\n\n        dirty date\n1 2022-01-05 22\n2 2022-01-17 35\n3 2022-01-22 24\n4 2022-01-23 20\n5 2022-01-29 16\n6 2022-02-13 19\n<\/strong><\/pre>\n<h2> <span style=\"color: #000000;\"><strong>\uc608\uc81c 1: \uae30\ubcf8 R\uc5d0\uc11c as.character() \uc0ac\uc6a9<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">\ub2e4\uc74c \ucf54\ub4dc\ub294 R \uae30\ubcf8 <strong>ifelse(<\/strong> ) \ud568\uc218\uc640 \ud568\uaed8 <strong>as.character()<\/strong> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130 \ud504\ub808\uc784\uc758 <strong>\ub0a0\uc9dc<\/strong> \uc5f4\uc5d0 if else \ubb38\uc744 \uc218\ud589\ud558\uace0 \uacb0\uacfc\ub85c \ub0a0\uc9dc\ub97c \uc0dd\uc131\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#if date is before 2022-01-20 then add 5 days<\/span>\ndf$date &lt;- as. <span style=\"color: #3366ff;\">Date<\/span> (ifelse(df$date &lt; ' <span style=\"color: #ff0000;\">2022-01-20<\/span> ',\n                   as. <span style=\"color: #3366ff;\">character<\/span> (df$date+5),\n                   as. <span style=\"color: #3366ff;\">character<\/span> (df$date)))\n\n<span style=\"color: #008080;\">#view updated data frame<\/span>\ndf\n\n        dirty dates\n1 2022-01-10 22\n2 2022-01-22 35\n3 2022-01-22 24\n4 2022-01-23 20\n5 2022-01-29 16\n6 2022-02-13 19\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\"><strong>\ub0a0\uc9dc<\/strong> \uc5f4\uc758 \uac12\uc774 2022\ub144 1\uc6d4 20\uc77c \uc774\uc804\uc778 \uacbd\uc6b0 \ub0a0\uc9dc\uc5d0 5\uc77c\uc744 \ucd94\uac00\ud588\uc2b5\ub2c8\ub2e4.<\/span><\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>\ub0a0\uc9dc<\/strong> \uc5f4\uc740 \uc22b\uc790 \ud615\uc2dd\uc73c\ub85c \ubcc0\ud658\ub418\uc9c0 \uc54a\uace0 \ub0a0\uc9dc \ud615\uc2dd\uc744 \uc720\uc9c0\ud588\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>\uc608 2: dplyr\uc5d0\uc11c if_else() \uc0ac\uc6a9<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">\ub2e4\uc74c \ucf54\ub4dc\ub294 dplyr\uc758 <strong>if_else()<\/strong> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130 \ud504\ub808\uc784\uc758 <strong>\ub0a0\uc9dc<\/strong> \uc5f4\uc5d0 \ub300\ud574 if else \ubb38\uc744 \uc218\ud589\ud558\uace0 \uacb0\uacfc\ub85c \ub0a0\uc9dc\ub97c \uc0dd\uc131\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">library<\/span> (dplyr)<\/span>\n\n#if date is before 2022-01-20 then add 5 days<\/span>\ndf$date &lt;- if_else(df$date &lt; ' <span style=\"color: #ff0000;\">2022-01-20<\/span> ', df$date+5, df$date)\n\n<span style=\"color: #008080;\">#view updated data frame<\/span>\ndf\n\n        dirty date\n1 2022-01-10 22\n2 2022-01-22 35\n3 2022-01-22 24\n4 2022-01-23 20\n5 2022-01-29 16\n6 2022-02-13 19\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>\ub0a0\uc9dc<\/strong> \uc5f4\uc758 \uac12\uc774 2022\ub144 1\uc6d4 20\uc77c \uc774\uc804\uc778 \uacbd\uc6b0 \ub0a0\uc9dc\uc5d0 5\uc77c\uc744 \ucd94\uac00\ud588\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>\ub0a0\uc9dc<\/strong> \uc5f4\uc740 \uc22b\uc790 \ud615\uc2dd\uc73c\ub85c \ubcc0\ud658\ub418\uc9c0 \uc54a\uace0 \ub0a0\uc9dc \ud615\uc2dd\uc744 \uc720\uc9c0\ud588\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>\uc608 3: data.table\uc5d0\uc11c fifelse() \uc0ac\uc6a9<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">\ub2e4\uc74c \ucf54\ub4dc\ub294 data.table\uc758 <strong>fifelse()<\/strong> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub370\uc774\ud130 \ud504\ub808\uc784\uc758 <strong>\ub0a0\uc9dc<\/strong> \uc5f4\uc5d0 if else \ubb38\uc744 \uc218\ud589\ud558\uace0 \uacb0\uacfc\ub85c \ub0a0\uc9dc\ub97c \uc0dd\uc131\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">library<\/span> (data.table)<\/span>\n\n#if date is before 2022-01-20 then add 5 days<\/span>\ndf$date &lt;- fifelse(df$date &lt; ' <span style=\"color: #ff0000;\">2022-01-20<\/span> ', df$date+5, df$date)\n\n<span style=\"color: #008080;\">#view updated data frame<\/span>\ndf\n\n        dirty dates\n1 2022-01-10 22\n2 2022-01-22 35\n3 2022-01-22 24\n4 2022-01-23 20\n5 2022-01-29 16\n6 2022-02-13 19\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>\ub0a0\uc9dc<\/strong> \uc5f4\uc758 \uac12\uc774 2022\ub144 1\uc6d4 20\uc77c \uc774\uc804\uc778 \uacbd\uc6b0 \ub0a0\uc9dc\uc5d0 5\uc77c\uc744 \ucd94\uac00\ud588\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\uc774\ubc88\uc5d0\ub3c4 <strong>\ub0a0\uc9dc<\/strong> \uc5f4\uc740 \uc22b\uc790 \ud615\uc2dd\uc73c\ub85c \ubcc0\ud658\ub418\uc9c0 \uc54a\uace0 \ub0a0\uc9dc \ud615\uc2dd\uc744 \uc720\uc9c0\ud588\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>\ucc38\uace0<\/strong> : \ub9e4\uc6b0 \ud070 \ub370\uc774\ud130 \ud504\ub808\uc784\uc758 \uacbd\uc6b0 dplyr \ubc0f data.table \uba54\uc11c\ub4dc\ub294 \uae30\ubcf8 R \uba54\uc11c\ub4dc\ubcf4\ub2e4 \ube60\ub985\ub2c8\ub2e4.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>\ucd94\uac00 \ub9ac\uc18c\uc2a4<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">\ub2e4\uc74c \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 R\uc5d0\uc11c \ub2e4\ub978 \uc77c\ubc18\uc801\uc778 \uc791\uc5c5\uc744 \uc218\ud589\ud558\ub294 \ubc29\ubc95\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/ko\/ifelse\u1100\u1161-r\u110b\u1166-\u110c\u116e\u11bc\u110e\u1165\u11b8\u1103\u116c\u110b\u1165-\u110b\u1175\u11bb\u110b\u1173\u11b7\/\" target=\"_blank\" rel=\"noopener\">R\uc5d0\uc11c \uc911\ucca9\ub41c If Else \ubb38\uc744 \uc791\uc131\ud558\ub294 \ubc29\ubc95<\/a><br \/> <a href=\"https:\/\/statorials.org\/ko\/r\u110b\u1174-\u1109\u1161\u1105\u1168-\u110c\u1175\u11ab\u1109\u116e\u11af\/\" target=\"_blank\" rel=\"noopener\">R\uc5d0\uc11c \uc0ac\ub840 \uc124\uba85\uc744 \uc791\uc131\ud558\ub294 \ubc29\ubc95<\/a><br \/> <a href=\"https:\/\/statorials.org\/ko\/r\u110b\u1174-\u1103\u1166\u110b\u1175\u1110\u1165-\u1111\u1173\u1105\u1166\u110b\u1175\u11b7\u110b\u1166-\u110b\u1167\u1105\u1165-\u110b\u1167\u11af-\u110e\u116e\u1100\u1161\/\" target=\"_blank\" rel=\"noopener\">R\uc758 \ub370\uc774\ud130 \ud504\ub808\uc784\uc5d0 \uc5ec\ub7ec \uc5f4\uc744 \ucd94\uac00\ud558\ub294 \ubc29\ubc95<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uae30\ubcf8 R\uc758 ifelse() \ud568\uc218\ub294 \uae30\ubcf8\uc801\uc73c\ub85c \ub0a0\uc9dc \uac1d\uccb4\ub97c \uc22b\uc790 \uac1d\uccb4\ub85c \ubcc0\ud658\ud569\ub2c8\ub2e4. \uc774\ub7ec\ud55c \uc77c\uc774 \ubc1c\uc0dd\ud558\uc9c0 \uc54a\ub3c4\ub85d \ud558\ub824\uba74 \ub2e4\uc74c \ubc29\ubc95 \uc911 \ud558\ub098\ub97c \ub300\uc548\uc73c\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ubc29\ubc95 1: Base R\uc5d0\uc11c as.character() \uc0ac\uc6a9 df$date &lt;- as. Date (ifelse(df$date &lt; &#8216; 2022-01-20 &#8216;, as. character (df$date+5), as. character (df$date))) \ubc29\ubc95 2: dplyr\uc5d0\uc11c if_else() \uc0ac\uc6a9 df$date &lt;- if_else(df$date &lt; &#8216; 2022-01-20 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-3897","post","type-post","status-publish","format-standard","hentry","category-20"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>A: ifelse()\uac00 \ub0a0\uc9dc\ub97c \uc22b\uc790\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud569\ub2c8\ub2e4 \u2013 Statorials<\/title>\n<meta name=\"description\" content=\"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 R\uc758 ifelse() \ud568\uc218\uac00 \ub0a0\uc9dc \uac1d\uccb4\ub97c \uc22b\uc790 \uac1d\uccb4\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud558\ub294 \ubc29\ubc95\uc744 \uc608\uc81c\ub97c \ud3ec\ud568\ud558\uc5ec \uc124\uba85\ud569\ub2c8\ub2e4.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/ko\/r-ifelse-\u1109\u116e\u11ba\u110c\u1161-\u1102\u1161\u11af\u110d\u1161\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A: ifelse()\uac00 \ub0a0\uc9dc\ub97c \uc22b\uc790\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud569\ub2c8\ub2e4 \u2013 Statorials\" \/>\n<meta property=\"og:description\" content=\"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 R\uc758 ifelse() \ud568\uc218\uac00 \ub0a0\uc9dc \uac1d\uccb4\ub97c \uc22b\uc790 \uac1d\uccb4\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud558\ub294 \ubc29\ubc95\uc744 \uc608\uc81c\ub97c \ud3ec\ud568\ud558\uc5ec \uc124\uba85\ud569\ub2c8\ub2e4.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/ko\/r-ifelse-\u1109\u116e\u11ba\u110c\u1161-\u1102\u1161\u11af\u110d\u1161\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-14T21:31:01+00:00\" \/>\n<meta name=\"author\" content=\"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/ko\/r-ifelse-%e1%84%89%e1%85%ae%e1%86%ba%e1%84%8c%e1%85%a1-%e1%84%82%e1%85%a1%e1%86%af%e1%84%8d%e1%85%a1\/\",\"url\":\"https:\/\/statorials.org\/ko\/r-ifelse-%e1%84%89%e1%85%ae%e1%86%ba%e1%84%8c%e1%85%a1-%e1%84%82%e1%85%a1%e1%86%af%e1%84%8d%e1%85%a1\/\",\"name\":\"A: ifelse()\uac00 \ub0a0\uc9dc\ub97c \uc22b\uc790\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud569\ub2c8\ub2e4 \u2013 Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ko\/#website\"},\"datePublished\":\"2023-07-14T21:31:01+00:00\",\"dateModified\":\"2023-07-14T21:31:01+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/ko\/#\/schema\/person\/600556789b7d79cbaa9d9f0c721b74f4\"},\"description\":\"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 R\uc758 ifelse() \ud568\uc218\uac00 \ub0a0\uc9dc \uac1d\uccb4\ub97c \uc22b\uc790 \uac1d\uccb4\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud558\ub294 \ubc29\ubc95\uc744 \uc608\uc81c\ub97c \ud3ec\ud568\ud558\uc5ec \uc124\uba85\ud569\ub2c8\ub2e4.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/ko\/r-ifelse-%e1%84%89%e1%85%ae%e1%86%ba%e1%84%8c%e1%85%a1-%e1%84%82%e1%85%a1%e1%86%af%e1%84%8d%e1%85%a1\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ko\/r-ifelse-%e1%84%89%e1%85%ae%e1%86%ba%e1%84%8c%e1%85%a1-%e1%84%82%e1%85%a1%e1%86%af%e1%84%8d%e1%85%a1\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ko\/r-ifelse-%e1%84%89%e1%85%ae%e1%86%ba%e1%84%8c%e1%85%a1-%e1%84%82%e1%85%a1%e1%86%af%e1%84%8d%e1%85%a1\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\uc9d1\",\"item\":\"https:\/\/statorials.org\/ko\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A: ifelse()\uac00 \ub0a0\uc9dc\ub97c \uc22b\uc790\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud569\ub2c8\ub2e4.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/ko\/#website\",\"url\":\"https:\/\/statorials.org\/ko\/\",\"name\":\"Statorials\",\"description\":\"\ud1b5\uacc4 \ud65c\uc6a9 \ub2a5\ub825\uc744 \uc704\ud55c \uac00\uc774\ub4dc!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/ko\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/ko\/#\/schema\/person\/600556789b7d79cbaa9d9f0c721b74f4\",\"name\":\"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/statorials.org\/ko\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/ko\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/ko\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8\"},\"description\":\"\uc548\ub155\ud558\uc138\uc694. \uc800\ub294 \ud1b5\uacc4\ud559 \uad50\uc218\ub97c \ud1f4\uc9c1\ud558\uace0 \uc804\uc784 \ud1b5\uacc4 \uad50\uc0ac\ub85c \ubcc0\uc2e0\ud55c \ubca4\uc790\ubbfc\uc785\ub2c8\ub2e4. \ud1b5\uacc4 \ubd84\uc57c\uc758 \uad11\ubc94\uc704\ud55c \uacbd\ud5d8\uacfc \uc804\ubb38 \uc9c0\uc2dd\uc744 \ubc14\ud0d5\uc73c\ub85c Statorials\ub97c \ud1b5\ud574 \ud559\uc0dd\ub4e4\uc5d0\uac8c \ud798\uc744 \uc2e4\uc5b4\uc8fc\uae30 \uc704\ud574 \uc9c0\uc2dd\uc744 \uacf5\uc720\ud558\uace0 \uc2f6\uc2b5\ub2c8\ub2e4. \ub354 \uc54c\uc544\ubcf4\uae30\",\"sameAs\":[\"https:\/\/statorials.org\/ko\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"A: ifelse()\uac00 \ub0a0\uc9dc\ub97c \uc22b\uc790\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud569\ub2c8\ub2e4 \u2013 Statorials","description":"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 R\uc758 ifelse() \ud568\uc218\uac00 \ub0a0\uc9dc \uac1d\uccb4\ub97c \uc22b\uc790 \uac1d\uccb4\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud558\ub294 \ubc29\ubc95\uc744 \uc608\uc81c\ub97c \ud3ec\ud568\ud558\uc5ec \uc124\uba85\ud569\ub2c8\ub2e4.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/ko\/r-ifelse-\u1109\u116e\u11ba\u110c\u1161-\u1102\u1161\u11af\u110d\u1161\/","og_locale":"ko_KR","og_type":"article","og_title":"A: ifelse()\uac00 \ub0a0\uc9dc\ub97c \uc22b\uc790\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud569\ub2c8\ub2e4 \u2013 Statorials","og_description":"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 R\uc758 ifelse() \ud568\uc218\uac00 \ub0a0\uc9dc \uac1d\uccb4\ub97c \uc22b\uc790 \uac1d\uccb4\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud558\ub294 \ubc29\ubc95\uc744 \uc608\uc81c\ub97c \ud3ec\ud568\ud558\uc5ec \uc124\uba85\ud569\ub2c8\ub2e4.","og_url":"https:\/\/statorials.org\/ko\/r-ifelse-\u1109\u116e\u11ba\u110c\u1161-\u1102\u1161\u11af\u110d\u1161\/","og_site_name":"Statorials","article_published_time":"2023-07-14T21:31:01+00:00","author":"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8","twitter_card":"summary_large_image","twitter_misc":{"Written by":"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8","Est. reading time":"2\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/ko\/r-ifelse-%e1%84%89%e1%85%ae%e1%86%ba%e1%84%8c%e1%85%a1-%e1%84%82%e1%85%a1%e1%86%af%e1%84%8d%e1%85%a1\/","url":"https:\/\/statorials.org\/ko\/r-ifelse-%e1%84%89%e1%85%ae%e1%86%ba%e1%84%8c%e1%85%a1-%e1%84%82%e1%85%a1%e1%86%af%e1%84%8d%e1%85%a1\/","name":"A: ifelse()\uac00 \ub0a0\uc9dc\ub97c \uc22b\uc790\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud569\ub2c8\ub2e4 \u2013 Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/ko\/#website"},"datePublished":"2023-07-14T21:31:01+00:00","dateModified":"2023-07-14T21:31:01+00:00","author":{"@id":"https:\/\/statorials.org\/ko\/#\/schema\/person\/600556789b7d79cbaa9d9f0c721b74f4"},"description":"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 R\uc758 ifelse() \ud568\uc218\uac00 \ub0a0\uc9dc \uac1d\uccb4\ub97c \uc22b\uc790 \uac1d\uccb4\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud558\ub294 \ubc29\ubc95\uc744 \uc608\uc81c\ub97c \ud3ec\ud568\ud558\uc5ec \uc124\uba85\ud569\ub2c8\ub2e4.","breadcrumb":{"@id":"https:\/\/statorials.org\/ko\/r-ifelse-%e1%84%89%e1%85%ae%e1%86%ba%e1%84%8c%e1%85%a1-%e1%84%82%e1%85%a1%e1%86%af%e1%84%8d%e1%85%a1\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ko\/r-ifelse-%e1%84%89%e1%85%ae%e1%86%ba%e1%84%8c%e1%85%a1-%e1%84%82%e1%85%a1%e1%86%af%e1%84%8d%e1%85%a1\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ko\/r-ifelse-%e1%84%89%e1%85%ae%e1%86%ba%e1%84%8c%e1%85%a1-%e1%84%82%e1%85%a1%e1%86%af%e1%84%8d%e1%85%a1\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\uc9d1","item":"https:\/\/statorials.org\/ko\/"},{"@type":"ListItem","position":2,"name":"A: ifelse()\uac00 \ub0a0\uc9dc\ub97c \uc22b\uc790\ub85c \ubcc0\ud658\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud569\ub2c8\ub2e4."}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/ko\/#website","url":"https:\/\/statorials.org\/ko\/","name":"Statorials","description":"\ud1b5\uacc4 \ud65c\uc6a9 \ub2a5\ub825\uc744 \uc704\ud55c \uac00\uc774\ub4dc!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/ko\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ko-KR"},{"@type":"Person","@id":"https:\/\/statorials.org\/ko\/#\/schema\/person\/600556789b7d79cbaa9d9f0c721b74f4","name":"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/statorials.org\/ko\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/ko\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/ko\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\ubca4\uc790\ubbfc \uc564\ub354\uc2a8"},"description":"\uc548\ub155\ud558\uc138\uc694. \uc800\ub294 \ud1b5\uacc4\ud559 \uad50\uc218\ub97c \ud1f4\uc9c1\ud558\uace0 \uc804\uc784 \ud1b5\uacc4 \uad50\uc0ac\ub85c \ubcc0\uc2e0\ud55c \ubca4\uc790\ubbfc\uc785\ub2c8\ub2e4. \ud1b5\uacc4 \ubd84\uc57c\uc758 \uad11\ubc94\uc704\ud55c \uacbd\ud5d8\uacfc \uc804\ubb38 \uc9c0\uc2dd\uc744 \ubc14\ud0d5\uc73c\ub85c Statorials\ub97c \ud1b5\ud574 \ud559\uc0dd\ub4e4\uc5d0\uac8c \ud798\uc744 \uc2e4\uc5b4\uc8fc\uae30 \uc704\ud574 \uc9c0\uc2dd\uc744 \uacf5\uc720\ud558\uace0 \uc2f6\uc2b5\ub2c8\ub2e4. \ub354 \uc54c\uc544\ubcf4\uae30","sameAs":["https:\/\/statorials.org\/ko"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/posts\/3897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/comments?post=3897"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/posts\/3897\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/media?parent=3897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/categories?post=3897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/tags?post=3897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}