๋ถ๋ฅ ์ ์ฒด๋ณด๊ธฐ (233) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ ์ธ ๊ทธ๋ฃน์ ํ๊ท ๋น๊ต # R install.packages('moonBook') require(moonBook) data(acs) acs summary(acs) str(acs) moonBook::densityplot(age~sex, data=acs) shapiro.test(acs$age[acs$sex=="Male"]) shapiro.test(acs$age[acs$sex=="Female"]) whicox.test(age-sex, data=acs) var.test(age~sex, data=acs) # ๋ฑ๋ถ์ฐ์ ํ์ธํ๊ธฐ ์ํ ๋ฐฉ๋ฒ, P0.05 ์ ๊ท๋ถํฌ!!! shapiro.test(acs$LDLC[acs$Dx=="STEMI"]) # p-value = 0.6066, P>0.05 ์ ๊ท๋ถํฌ shapiro.test(acs$LDLC[acs$.. [ํ์ด์ฌ ์น ๊ฐ๋ฐ] ํจ์คํธ์บ ํผ์ค ํ์ต์ผ์ง 1์ฃผ์ฐจ 1. ๊ฐ๋ฐ ํ๊ฒฝ ์ค์ * Python ์ธ์ด ์ฅ์ - ๋ฌธ๋ฒ์ด ๊ฐ๊ฒฐ - ๋ค์ํ ์ด์์ฒด์ ์ง์ - GUI Application ๊ฐ๋ฐ(PyQT) - ๋ฐฉ๋ํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ง์ / ์ค๋ฅ ์ ๊ณ , ํจ์จ์ ์ - ๋ฒ์ฉ ์ธ์ด(๋คํธ์ํฌ, ์น, ๋ฐ์ดํฐ๋ถ์, ๊ธฐ๊ณํ์ต ๋ฑ) โ * ํ๋ ์์ํฌ, ์คํ์์ค(Django, Flask ๋ฑ) ์ด์ฉ ์ด์ - ์๋นํ ๊ฐ๋ฐ์๊ฐ ๋จ์ถ, ํจ์จ์ ์ผ๋ก App๋ง๋๋ ๊ฒ์ ์ง์ํด์ค โ * ๊ณต๋ถ ๋ฐฉ๋ฒ ๋ฐ ์์ ์งํ ๊ณํ - ๋ฐ๋์ ์ง์ ์ฝ๋ฉ ์ค์ต - ๋๋ฌด ์ด๋ ค์ธ ๊ฒฝ์ฐ ์ฐ์ ์ ํจ์ค -> ์๋ จ๋ ์์ด๋ฉด ํด๊ฒฐ - ๊ผญ ๋ณต์ต ์ฝ๋ฉ ๋ฐ ์์ฉ ์ค์ต - ์ฒ์ฒํ ๊ทธ๋ฌ๋ ํ์คํ๊ฒ ํ์ต โ * ์ด์์ฒด์ ์ ๋ง๋ ํ์ด์ฌ, VS Code ๋ค์ด๋ก๋ - window ๊ฒฝ๋ก์ ํ๊ธ์ด ๋ค์ด๊ฐ๋ฉด ์๋จ - cmd or ํฐ๋ฏธ๋์์ code ์ ๋ ฅ ์.. Select SubQuery for Comma Separated Values from Single row SELECT * FROM Orders WHERE Status IN (SELECT Value FROM StatusTable CROSS APPLY STRING_SPLIT(Statuses,',')) https://stackoverflow.com/questions/39643516/select-subquery-for-comma-separated-values-from-single-row Select SubQuery for Comma Separated Values from Single row From a Select Query I am getting following values in single row , not in different rows: Id Statuses --- ------------- 1 Releas.. [React Native] Height and Width component์ height์ width๋ ํ๋ฉด์์ ํฌ๊ธฐ๋ฅผ ๊ฒฐ์ ํ๋ค. Fixed Dimensions ํฌ๊ธฐ๋ฅผ ์ค์ ํ๋ ๊ฐ์ฅ ์ฌํํ ๋ฐฉ๋ฒ์ ๊ณ ์ ๋ width์ height๋ฅผ style์ ์ถ๊ฐ ํ๋ ๊ฒ์ด๋ค. React Native์์ ๋ชจ๋ ํฌ๊ธฐ๋ ๋จ์๊ฐ ์๊ณ , density-independent pixels(๋ฐ๋๋ ๋ฆฝํ์?)์ ๋ํ๋ธ๋ค. ์ด ๋ฐฉ๋ฒ์ผ๋ก ํฌ๊ธฐ๋ฅผ ์ค์ ํ๋ ๊ฒ์, screen ํฌ๊ธฐ์ ์๊ด์์ด ํญ์ ์ ํํ ๋์ผํ ํฌ๊ธฐ๋ฅผ ๊ทธ๋ ค์ผ ํ๋ component์ ์ผ๋ฐ์ ์ผ๋ก ์ฐ์ธ๋ค. Flex Dimensions A component can only expand to fill available space if its parent has dimensions greater than 0. If a parent does .. [React Native] Style React Native์์ ์คํ์ผ์ ์ ์ํ ๋ ํน๋ณํ ์ธ์ด๋ ๋ฌธ๋ฒ์ ์ฌ์ฉํ์ง ์๋๋ค. ๊ทธ๋ฅ JavaScript๋ฅผ ์ฌ์ฉํ์ฌ application์ ๋์์ธ ํ๋ค. names๋ camel casing์ ์ฌ์ฉํ๋ค. (e.g. backgroundColor) ๊ตฌ์ฑ ์์๊ฐ ๋ณต์ก ํด์ง์ ๋ฐ๋ผ StyleSheet.create๋ฅผ ์ฌ์ฉํ์ฌ ์ฌ๋ฌ ์คํ์ผ์ ํ ๊ณณ์์ ์ ์ํ๋ ๊ฒ์ด ๋ ๊น๋ํฉ๋๋ค. ์๋ฅผ ๋ค๋ฉด ๋ค์๊ณผ ๊ฐ๋ค. Text style์ Customizing ํ๋ ๋ค์ํ ๋ฐฉ๋ฒ โ https://facebook.github.io/react-native/docs/text ์ฐธ๊ณ https://facebook.github.io/react-native/docs/style React Native · A framework for bu.. [React Native] State component๋ฅผ ์ปจํธ๋กค ํ ์ ์๋ 2๊ฐ์ ๋ฐ์ดํฐ ํ์ ์ด ์๋ค. props and state props๋ ๋ถ๋ชจ์ ์ํด ์ค์ ๋๊ณ , component์ lifetime ๋์ ๊ณ ์ ๋๋ค. ๋ฐ์ดํฐ๊ฐ ๋ณํ ๋์ด์ผ ํ๋ค๋ฉด, state๋ฅผ ์ฌ์ฉํด์ผ ํ๋ค. ์ผ๋ฐ์ ์ผ๋ก, ์์ฑ์์์ state๋ฅผ ์ด๊ธฐํํ๊ณ ๋ณ๊ฒฝ ํ ๋๋ setState๋ฅผ ํธ์ถํด์ผํ๋ค. ์๋ฅผ ๋ค์ด, ํญ์ ๊น๋นก์ด๋ text๋ฅผ ๋ง๋ค๊ณ ์ถ๋ค๊ณ ๊ฐ์ ํด ๋ณด์. blinking component๊ฐ ์์ฑ๋ ๋ text๋ ํ๋ฒ ์ค์ ๋๋ฏ๋ก prop์ด๋ค. "ํ ์คํธ๊ฐ ํ์ฌ ์ผ์ ธ ์๋์ง ๊บผ์ ธ ์๋์ง"๋ ์๊ฐ์ด ์ง๋จ์ ๋ฐ๋ผ ๋ณ๊ฒฝ๋๋ฏ๋ก state๋ก ์ ์ง๋์ด์ผ ํ๋ค. ์ค์ application์์๋, ์๋ง timer๋ก state๋ฅผ ์ค์ ํ์ง ์์ ๊ฒ์ด๋ค. ์๋ฒ๋ ์ฌ์ฉ์ ์ ๋ ฅ์ผ๋ก ๋ถํฐ .. [React Native] Props ๋๋ถ๋ถ์ component ๋ค์ ์์ฑํ ๋ ๋ค๋ฅธ parameter๋ค๊ณผ ํจ๊ป ์ปค์คํฐ๋ง์ด์ง ๊ฐ๋ฅํจ ์ด๋ ๊ฒ ์์ฑํ ํ๋ผ๋ฏธํฐ๋ค์ props๋ผ๊ณ ๋ถ๋ฅธ๋ค (properties ์ค์๋ง) ์๋ ์ฝ๋์์ Image๋ ํ๋์ ๊ธฐ๋ณธ์ ์ธ React Native component์ด๋ค. ์ด๋ฏธ์ง๋ฅผ ๋ง๋ค ๋, ์ด๋ค ์ด๋ฏธ์ง๋ฅผ ๋ณด์ฌ ์ค ๊ฒ์ธ์ง ์ ์ดํ๋ source๋ผ๋ prop์ ์ฌ์ฉ ํ ์ ์๋ค. {pic} : JSX์ ํฌํจ๋ ๋ณ์. ์ค๊ดํธ๋ฅผ ์ฃผ๋ชฉํ์! :D ์ด๋ค Javascript expression ์ด๋ JSX์ ์ค๊ดํธ ์์ ๋ฃ์ ์ ์๋ค. ๋ด๊ฐ ๋ง๋ component์๋ props๋ฅผ ์ฌ์ฉ ํ ์ ์๋ค. (์๋ ์ฝ๋์์ name) Greeting component์์ name์ prop์ผ๋ก ์ฌ์ฉํจ์ผ๋ก์จ, ๊ฐ๊ฐ์ greetings์์.. [React Native] Learn the Basics React Native๋ Reactํ๊ณ ๋น์ทํ์ง๋ง, web components (building blocks) ๋์ native components๋ฅผ ์ฌ์ฉํ๋ค. React Native app ๊ธฐ๋ณธ ๊ตฌ์กฐ๋ฅผ ์ดํดํ๋ ค๋ฉด JSX, components, state, props ๋ฑ์ ์ดํดํด์ผํ๋น! Hello World ํ .. ES2015 ์์์ผ ํ๋์..? Hello world! ์ต์ํ์ง ์์ ์ ์ฝ๋๋ JSX ์ด๋ค. Javascript ์์ ํฌํจ๋๋ XML ๋ฌธ๋ฒ. ๋ text๋ฅผ ๋ํ๋ผ ์ ์๋ component ์ด๊ณ , = or Components ์ ์ฝ๋์์๋ HelloWorldApp๋ผ๋ ์๋ก์ด Component๋ฅผ ์ ์ํ๋ค. ์ฐ๋ฆฌ๊ฐ React Native app ์ ๊ฐ๋ฐํ ๋ ์ด์ ๊ฐ์ ์๋ก์ด components.. ์ด์ 1 ยทยทยท 20 21 22 23 24 25 26 ยทยทยท 30 ๋ค์ ํฐ์คํ ๋ฆฌํด๋ฐ Developer๐ค๊ตฌ๋ ํ๊ธฐ