{"id":3906,"date":"2023-07-14T20:10:46","date_gmt":"2023-07-14T20:10:46","guid":{"rendered":"https:\/\/statorials.org\/ko\/r-if_else-%e1%84%83%e1%85%a2-ifelse\/"},"modified":"2023-07-14T20:10:46","modified_gmt":"2023-07-14T20:10:46","slug":"r-if_else-%e1%84%83%e1%85%a2-ifelse","status":"publish","type":"post","link":"https:\/\/statorials.org\/ko\/r-if_else-%e1%84%83%e1%85%a2-ifelse\/","title":{"rendered":"A: ifelse()\uc640 if_else()\uc758 \ucc28\uc774\uc810"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><span style=\"color: #000000;\"><a href=\"https:\/\/dplyr.tidyverse.org\/\" target=\"_blank\" rel=\"noopener\">dplyr<\/a> <strong>if_else()<\/strong> \ud568\uc218\ub294 R \uae30\ubcf8 <strong>ifelse()<\/strong> \ud568\uc218\uc5d0 \ube44\ud574 \uc138 \uac00\uc9c0 \uc7a5\uc810\uc774 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1.<\/strong> <strong>if_else()<\/strong> \ud568\uc218\ub294 if else \ubb38\uc758 \ub450 \ub300\uc548\uc774 \ub3d9\uc77c\ud55c \ub370\uc774\ud130 \uc720\ud615\uc744 \uac00\uc9c0\uace0 \uc788\ub294\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>2.<\/strong> <strong>if_else()<\/strong> \ud568\uc218\ub294 Date \uac1d\uccb4\ub97c \uc22b\uc790\ub85c \ubcc0\ud658\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>3.<\/strong> <strong>if_else()<\/strong> \ud568\uc218\ub294 NA \uac12\uc744 \ucc98\ub9ac\ud558\ub294 \ubc29\ubc95\uc744 \uc9c0\uc815\ud558\uae30 \uc704\ud574 &#8220;\ub204\ub77d\ub41c&#8221; \uc778\uc218\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\ub2e4\uc74c \uc608\uc5d0\uc11c\ub294 \uc2e4\uc81c\ub85c \uc774\ub7ec\ud55c \ucc28\uc774\uc810\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>\uc608\uc81c 1: if_else()\ub294 \ub450 \ub300\uc548\uc774 \ub3d9\uc77c\ud55c \uc720\ud615\uc778\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">\ub2e4\uc591\ud55c \ub18d\uad6c \uc120\uc218\uc5d0 \ub300\ud55c \uc815\ubcf4\ub97c \ud3ec\ud568\ud558\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \ub370\uc774\ud130 \ud504\ub808\uc784\uc774 R\uc5d0 \uc788\ub2e4\uace0 \uac00\uc815\ud569\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create data frame\n<\/span>df &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (team=c('A', 'A', 'A', 'A', 'B', 'B', 'B', 'B'),\n                 points=c(22, 20, 28, 14, 13, 18, 27, 33))\n\n<span style=\"color: #008080;\">#view data frame\n<\/span>df\n\n  team points\n1 to 22\n2 to 20\n3 to 28\n4 to 14\n5 B 13\n6 B 18\n7 B 27\n8 B 33<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\">R \uae30\ubcf8 <strong>ifelse()<\/strong> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \ud300 \uac12\uc774 &#8220;A&#8221;\uc778 \ud589\uc5d0 &#8220;Atlanta&#8221; \uac12\uc744 \ud560\ub2f9\ud558\uace0 \ub2e4\ub978 \uac12\uc744 \uac00\uc9c4 \ud589\uc5d0 0\uc744 \ud560\ub2f9\ud558\ub294 \uc0c8 \uc5f4\uc744 \uc0dd\uc131\ud558\uba74 \uc624\ub958\uac00 \ubc1c\uc0dd\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. &#8220;Atlanta&#8221;\uac00 \ubb38\uc790\uc774\uace0 0\uc774 \uc22b\uc790\uc778 \uacbd\uc6b0\uc5d0\ub3c4:<\/span><\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create new column based on values in team column\n<\/span>df$city &lt;- ifelse(df$team <span style=\"color: #800080;\">==<\/span> ' <span style=\"color: #ff0000;\">A<\/span> ', ' <span style=\"color: #ff0000;\">Atlanta<\/span> ', 0)\n\n<span style=\"color: #008080;\">#view updated data frame\n<\/span>df\n\n  team points city\n1 to 22 Atlanta\n2 to 20 Atlanta\n3 to 28 Atlanta\n4 A 14 Atlanta\n5 B 13 0\n6 B 18 0\n7 B 27 0\n8 B 33 0\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">\uadf8\ub7ec\ub098 dplyr\uc758 <strong>if_else()<\/strong> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub3d9\uc77c\ud55c \uc791\uc5c5\uc744 \uc218\ud589\ud558\uba74 if else \ubb38\uc5d0\uc11c \ub450 \uac00\uc9c0 \ub2e4\ub978 \ub370\uc774\ud130 \uc720\ud615\uc744 \uc0ac\uc6a9\ud588\ub2e4\ub294 \uc624\ub958\uac00 \ud45c\uc2dc\ub429\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#attempt to create new column based on values in team column\n<\/span>df$city &lt;- if_else(df$team <span style=\"color: #800080;\">==<\/span> ' <span style=\"color: #ff0000;\">A<\/span> ', ' <span style=\"color: #ff0000;\">Atlanta<\/span> ', 0)\n\nError: `false` must be a character vector, not a double vector.\n<\/strong><\/pre>\n<h2> <strong><span style=\"color: #000000;\">\uc608\uc81c 2: if_else()\ub294 \ub0a0\uc9dc \uac1d\uccb4\ub97c \uc22b\uc790 \uac12\uc73c\ub85c \ubcc0\ud658\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.<\/span><\/strong><\/h2>\n<p> <span style=\"color: #000000;\">\uc0c1\uc810\uc5d0\uc11c \uc11c\ub85c \ub2e4\ub978 \ub0a0\uc9dc\uc5d0 \uc774\ub8e8\uc5b4\uc9c4 \ud310\ub9e4\ub97c \ubcf4\uc5ec\uc8fc\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \ub370\uc774\ud130 \ud504\ub808\uc784\uc774 R\uc5d0 \uc788\ub2e4\uace0 \uac00\uc815\ud569\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create data frame\n<\/span>df &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<p> <span style=\"color: #000000;\">R base <strong>ifelse()<\/strong> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub0a0\uc9dc \uc5f4\uc758 \uac12\uc744 \uc218\uc815\ud558\uba74 \uac12\uc774 \uc790\ub3d9\uc73c\ub85c \uc22b\uc790\ub85c \ubcc0\ud658\ub429\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\n<\/span>df$date &lt;- ifelse(df$date &lt; ' <span style=\"color: #ff0000;\">2022-01-20<\/span> ', df$date+ <span style=\"color: #008000;\">5<\/span> , df$date)\n\n   dirty date\n1 19002 22\n2 19014 35\n3 19014 24\n4 19015 20\n5 19021 16\n6 19036 19\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\">\uadf8\ub7ec\ub098 dplyr\uc758 <strong>if_else()<\/strong> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uba74 \ub0a0\uc9dc \uac1d\uccb4\ub294 \ub0a0\uc9dc\ub85c \uc720\uc9c0\ub429\ub2c8\ub2e4.<\/span><\/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\n<\/span>df$date &lt;- ifelse(df$date &lt; ' <span style=\"color: #ff0000;\">2022-01-20<\/span> ', df$date+ <span style=\"color: #008000;\">5<\/span> , 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<h2> <strong><span style=\"color: #000000;\">\uc608\uc81c 3: if_else()\ub294 NA \uac12\uc744 \ucc98\ub9ac\ud558\ub294 \ubc29\ubc95\uc744 \uc9c0\uc815\ud558\uae30 \uc704\ud574 &#8220;\ub204\ub77d&#8221; \uc778\uc218\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/span><\/strong><\/h2>\n<p> <span style=\"color: #000000;\">R\uc5d0 \ub2e4\uc74c\uacfc \uac19\uc740 \ub370\uc774\ud130 \ud504\ub808\uc784\uc774 \uc788\ub2e4\uace0 \uac00\uc815\ud569\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create data frame\n<\/span>df &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (team=c('A', 'A', 'A', 'A', 'B', 'B', NA, 'B'),\n                 points=c(22, 20, 28, 14, 13, 18, 27, 33))\n\n<span style=\"color: #008080;\">#view data frame\n<\/span>df\n\n  team points\n1 to 22\n2 to 20\n3 to 28\n4 to 14\n5 B 13\n6 B 18\n7 &lt;NA&gt; 27\n8 B 33<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">R \uae30\ubcf8 <strong>ifelse()<\/strong> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc0c8 \uc5f4\uc744 \uc0dd\uc131\ud558\ub294 \uacbd\uc6b0 NA \uac12\uc744 \ucc98\ub9ac\ud558\ub294 \ubc29\ubc95\uc744 \uc9c0\uc815\ud558\ub294 \uae30\ubcf8 \uc635\uc158\uc774 \uc5c6\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create new column based on values in team column\n<span style=\"color: #000000;\">df$city &lt;- ifelse(df$team <span style=\"color: #800080;\">==<\/span> ' <span style=\"color: #ff0000;\">A<\/span> ', ' <span style=\"color: #ff0000;\">Atlanta<\/span> ', ' <span style=\"color: #ff0000;\">Boston<\/span> ')\n\n<span style=\"color: #008080;\">#view updated data frame<\/span>\ndf\n\n  team points city\n1 to 22 Atlanta\n2 to 20 Atlanta\n3 to 28 Atlanta\n4 A 14 Atlanta\n5 B 13 Boston\n6 B 18 Boston\n7 &lt;NA&gt; 27 &lt;NA&gt;\n8 B 33 Boston\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">\uadf8\ub7ec\ub098 dplyr\uc758 <strong>if_else()<\/strong> \ud568\uc218\ub97c \uc0ac\uc6a9\ud558\uba74 <strong>\ub204\ub77d\ub41c<\/strong> \uc778\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec NA \uac12\uc744 \ucc98\ub9ac\ud558\ub294 \ubc29\ubc95\uc744 \uc9c0\uc815\ud560 \uc218 \uc788\uc2b5\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#create new column based on values in team column\n<span style=\"color: #000000;\">df$city &lt;- ifelse(df$team <span style=\"color: #800080;\">==<\/span> ' <span style=\"color: #ff0000;\">A<\/span> ', ' <span style=\"color: #ff0000;\">Atlanta<\/span> ', ' <span style=\"color: #ff0000;\">Boston<\/span> ', missing=' <span style=\"color: #ff0000;\">other<\/span> ')\n\n<span style=\"color: #008080;\">#view updated data frame\n<\/span>df\n\n  team points city\n1 to 22 Atlanta\n2 to 20 Atlanta\n3 to 28 Atlanta\n4 A 14 Atlanta\n5 B 13 Boston\n6 B 18 Boston\n7 &lt;NA&gt; 27 other\n8 B 33 Boston\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>\ud300<\/strong> \uc5f4\uc5d0 NA \uac12\uc774 \uc788\ub294 \ud589\uc740 \uc0c8 \ub3c4\uc2dc <strong>\uc5f4<\/strong> \uc5d0\uc11c &#8216;\uae30\ud0c0&#8217; \uac12\uc744 \ubc1b\uc2b5\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\/r-if-\u1106\u116e\u11ab-\u110b\u1167\u1105\u1165-\u110c\u1169\u1100\u1165\u11ab\/\" target=\"_blank\" rel=\"noopener\">R\uc5d0\uc11c \uc5ec\ub7ec \uc870\uac74\uc774 \uc788\ub294 If \ubb38\uc744 \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95<\/a><br \/> <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\/\u1103\u1161\u1109\u1175-\u1109\u1175\u1103\u1169\u1112\u1161\u1109\u1175\u11b8\u1109\u1175\u110b\u1169\/\" target=\"_blank\" rel=\"noopener\">R\uc5d0\uc11c \uccab \ubc88\uc9f8 tryCatch() \ud568\uc218\ub97c \uc791\uc131\ud558\ub294 \ubc29\ubc95<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>dplyr if_else() \ud568\uc218\ub294 R \uae30\ubcf8 ifelse() \ud568\uc218\uc5d0 \ube44\ud574 \uc138 \uac00\uc9c0 \uc7a5\uc810\uc774 \uc788\uc2b5\ub2c8\ub2e4. 1. if_else() \ud568\uc218\ub294 if else \ubb38\uc758 \ub450 \ub300\uc548\uc774 \ub3d9\uc77c\ud55c \ub370\uc774\ud130 \uc720\ud615\uc744 \uac00\uc9c0\uace0 \uc788\ub294\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4. 2. if_else() \ud568\uc218\ub294 Date \uac1d\uccb4\ub97c \uc22b\uc790\ub85c \ubcc0\ud658\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. 3. if_else() \ud568\uc218\ub294 NA \uac12\uc744 \ucc98\ub9ac\ud558\ub294 \ubc29\ubc95\uc744 \uc9c0\uc815\ud558\uae30 \uc704\ud574 &#8220;\ub204\ub77d\ub41c&#8221; \uc778\uc218\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4. \ub2e4\uc74c \uc608\uc5d0\uc11c\ub294 \uc2e4\uc81c\ub85c \uc774\ub7ec\ud55c \ucc28\uc774\uc810\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4. \uc608\uc81c 1: if_else()\ub294 [&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-3906","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()\uc640 if_else()\uc758 \ucc28\uc774\uc810 \u2013 Statorials<\/title>\n<meta name=\"description\" content=\"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 dplyr\uc758 if_else() \ud568\uc218\uc640 \uae30\ubcf8 R\uc758 ifelse() \ud568\uc218 \uac04\uc758 \uc8fc\uc694 \ucc28\uc774\uc810\uc744 \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-if_else-\u1103\u1162-ifelse\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"A: ifelse()\uc640 if_else()\uc758 \ucc28\uc774\uc810 \u2013 Statorials\" \/>\n<meta property=\"og:description\" content=\"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 dplyr\uc758 if_else() \ud568\uc218\uc640 \uae30\ubcf8 R\uc758 ifelse() \ud568\uc218 \uac04\uc758 \uc8fc\uc694 \ucc28\uc774\uc810\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/ko\/r-if_else-\u1103\u1162-ifelse\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-14T20:10:46+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-if_else-%e1%84%83%e1%85%a2-ifelse\/\",\"url\":\"https:\/\/statorials.org\/ko\/r-if_else-%e1%84%83%e1%85%a2-ifelse\/\",\"name\":\"A: ifelse()\uc640 if_else()\uc758 \ucc28\uc774\uc810 \u2013 Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ko\/#website\"},\"datePublished\":\"2023-07-14T20:10:46+00:00\",\"dateModified\":\"2023-07-14T20:10:46+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/ko\/#\/schema\/person\/600556789b7d79cbaa9d9f0c721b74f4\"},\"description\":\"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 dplyr\uc758 if_else() \ud568\uc218\uc640 \uae30\ubcf8 R\uc758 ifelse() \ud568\uc218 \uac04\uc758 \uc8fc\uc694 \ucc28\uc774\uc810\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/ko\/r-if_else-%e1%84%83%e1%85%a2-ifelse\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ko\/r-if_else-%e1%84%83%e1%85%a2-ifelse\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ko\/r-if_else-%e1%84%83%e1%85%a2-ifelse\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\uc9d1\",\"item\":\"https:\/\/statorials.org\/ko\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"A: ifelse()\uc640 if_else()\uc758 \ucc28\uc774\uc810\"}]},{\"@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()\uc640 if_else()\uc758 \ucc28\uc774\uc810 \u2013 Statorials","description":"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 dplyr\uc758 if_else() \ud568\uc218\uc640 \uae30\ubcf8 R\uc758 ifelse() \ud568\uc218 \uac04\uc758 \uc8fc\uc694 \ucc28\uc774\uc810\uc744 \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-if_else-\u1103\u1162-ifelse\/","og_locale":"ko_KR","og_type":"article","og_title":"A: ifelse()\uc640 if_else()\uc758 \ucc28\uc774\uc810 \u2013 Statorials","og_description":"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 dplyr\uc758 if_else() \ud568\uc218\uc640 \uae30\ubcf8 R\uc758 ifelse() \ud568\uc218 \uac04\uc758 \uc8fc\uc694 \ucc28\uc774\uc810\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.","og_url":"https:\/\/statorials.org\/ko\/r-if_else-\u1103\u1162-ifelse\/","og_site_name":"Statorials","article_published_time":"2023-07-14T20:10:46+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-if_else-%e1%84%83%e1%85%a2-ifelse\/","url":"https:\/\/statorials.org\/ko\/r-if_else-%e1%84%83%e1%85%a2-ifelse\/","name":"A: ifelse()\uc640 if_else()\uc758 \ucc28\uc774\uc810 \u2013 Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/ko\/#website"},"datePublished":"2023-07-14T20:10:46+00:00","dateModified":"2023-07-14T20:10:46+00:00","author":{"@id":"https:\/\/statorials.org\/ko\/#\/schema\/person\/600556789b7d79cbaa9d9f0c721b74f4"},"description":"\uc774 \ud29c\ud1a0\ub9ac\uc5bc\uc5d0\uc11c\ub294 dplyr\uc758 if_else() \ud568\uc218\uc640 \uae30\ubcf8 R\uc758 ifelse() \ud568\uc218 \uac04\uc758 \uc8fc\uc694 \ucc28\uc774\uc810\uc744 \uc124\uba85\ud569\ub2c8\ub2e4.","breadcrumb":{"@id":"https:\/\/statorials.org\/ko\/r-if_else-%e1%84%83%e1%85%a2-ifelse\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ko\/r-if_else-%e1%84%83%e1%85%a2-ifelse\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ko\/r-if_else-%e1%84%83%e1%85%a2-ifelse\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\uc9d1","item":"https:\/\/statorials.org\/ko\/"},{"@type":"ListItem","position":2,"name":"A: ifelse()\uc640 if_else()\uc758 \ucc28\uc774\uc810"}]},{"@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\/3906","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=3906"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/posts\/3906\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/media?parent=3906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/categories?post=3906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ko\/wp-json\/wp\/v2\/tags?post=3906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}