소스 정보
- 저장소
- personamanagmentlayer/pcl
- 최근 소스 활동
- 2026년 1월 19일 22:04
- 감지된 SKILL.md 언어
- 영어
- 스타
- 40
- 포크
- 9
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/personamanagmentlayer/pcl --skill r-expert명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
Expert in Persona Control Language (PCL) - language design, compiler architecture, runtime systems, and ecosystem development
Expert system for designing, creating, and validating PCL skills with comprehensive domain knowledge extraction
Expert-level Docker containerization, image optimization, and container orchestration. Use this skill for building efficient Docker images, managing containers, and implementing Docker best practices.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | r-expert |
| version | 1.0.0 |
| description | Expert-level R statistical computing, data analysis, and visualization |
| category | languages |
| tags | ["r","statistics","data-analysis","ggplot2","tidyverse"] |
| allowed-tools | ["Read","Write","Edit","Bash(R:*, Rscript:*)"] |
Expert guidance for R programming, statistical analysis, data visualization, and data science.
# Vectors
numbers <- c(1, 2, 3, 4, 5)
names <- c("Alice", "Bob", "Charlie")
# Data frames
df <- data.frame(
id = 1:5,
name = c("Alice", "Bob", "Charlie", "David", "Eve"),
age = c(25, 30, 35, 28, 32),
salary =
dfdfage
df
calculate_mean x
x x
sapplydfage x x
lapply
meandfage
print
print
i nrowdf
printdfnamei
library(dplyr)
library(tidyr)
library(stringr)
# dplyr operations
df %>%
filter(age > 28) %>%
select(name, age, salary) %>%
mutate(
salary_bonus = salary * 1.1,
age_group = case_when(
age < 30 ~ "Young",
age < 35 ~ "Mid-career",
TRUE ~ "Senior"
)
) %>%
arrange(desc(salary)) %>%
group_by(age_group) %>%
summarise(
count = n(),
avg_salary = meansalary
total_salary salary
wide_data data.frame
id
year_2021
year_2022
long_data wide_data
pivot_longer
cols starts_with
names_to
values_to
names_prefix
wide_again long_data
pivot_wider
names_from year
values_from value
names_prefix
df
mutate
name_upper str_to_uppername
name_length str_lengthname
first_letter str_subname
df1 data.frameid value1
df2 data.frameid value2
inner_joindf1 df2 by
left_joindf1 df2 by
full_joindf1 df2 by
library(ggplot2)
# Basic scatter plot
ggplot(df, aes(x = age, y = salary)) +
geom_point(size = 3, color = "blue") +
geom_smooth(method = "lm", se = TRUE) +
labs(
title = "Age vs Salary",
x = "Age (years)",
y = "Salary ($)"
) +
theme_minimal()
# Bar plot with facets
ggplot(df, aes(x = name, y = salary, fill = age_group)) +
geom_col() +
facet_wrap age_group
themeaxis.text.x element_textangle hjust
ggplotdf aesx age_group y salary
geom_boxplotfill
geom_jitterwidth alpha
ggplotdf aesx salary
geom_histogramaesy ..density.. bins fill
geom_densitycolor size
ggplottime_series_df aesx date y value
geom_linecolor
geom_point
scale_x_datedate_breaks date_labels
themeaxis.text.x element_textangle hjust
# Descriptive statistics
summary(df)
mean(df$age)
median(df$salary)
sd(df$age)
var(df$salary)
quantile(df$age, probs = c(0.25, 0.5, 0.75))
# Correlation
cor(df$age, df$salary)
cor.test(df$age, df$salary)
# T-test
t.test(df$salary ~ df$gender)
# ANOVA
model <- aov(salary ~ age_group, data = df)
summary(model)
TukeyHSD(model)
lm_model lmsalary age experience data df
summarylm_model
new_data data.frameage experience
predictlm_model new_data interval
multi_model lmsalary age experience education data df
summarymulti_model
parmfrow
plotmulti_model
logit_model glmoutcome age salary
data df
family binomiallink
summarylogit_model
library(forecast)
# Create time series
ts_data <- ts(data, start = c(2020, 1), frequency = 12)
# Decomposition
decomposed <- decompose(ts_data)
plot(decomposed)
# ARIMA model
auto_arima <- auto.arima(ts_data)
summary(auto_arima)
# Forecasting
forecast_result <- forecast(auto_arima, h = 12)
plot(forecast_result)
# Accuracy metrics
accuracy(forecast_result)
library(caret)
library(randomForest)
# Split data
set.seed(123)
train_index <- createDataPartition(df$outcome, p = 0.8, list = FALSE)
train_data <- df[train_index, ]
test_data <- df[-train_index, ]
# Train model
rf_model <- randomForest(
outcome ~ .,
data = train_data,
ntree = 500,
importance = TRUE
)
# Predictions
predictions <- predict(rf_model, test_data)
# Confusion matrix
confusionMatrix(predictions, test_data$outcome)
# Feature importance
importance(rf_model)
varImpPlotrf_model
train_control trainControl
method
number
savePredictions
cv_model train
outcome .
data train_data
method
trControl train_control
printcv_model
---
title: "Analysis Report"
author: "Data Scientist"
date: "`r Sys.Date()`"
output:
html_document:
toc: true
toc_float: true
code_folding: hide
---
## Introduction
This analysis explores the relationship between variables.
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE, message = FALSE, warning = FALSE)
library(tidyverse)
df <- read.csv("data.csv")
head(df)
ggplot(df, aes(x = x, y = y)) +
geom_point() +
theme_minimal()
The analysis shows that r cor(df$x, df$y) correlation.
## Data Import/Export
```r
# CSV
df <- read.csv("data.csv")
write.csv(df, "output.csv", row.names = FALSE)
# Excel
library(readxl)
library(writexl)
df <- read_excel("data.xlsx", sheet = "Sheet1")
write_xlsx(df, "output.xlsx")
# JSON
library(jsonlite)
df <- fromJSON("data.json")
write_json(df, "output.json")
# Database
library(DBI)
library(RSQLite)
con <- dbConnect(SQLite(), "database.db")
df <- dbReadTable(con, "table_name")
dbWriteTable(con, "new_table", df)
dbDisconnect(con)
# Web APIs
library(httr)
response <- GET("https://api.example.com/data")
data <- content(response, as = "parsed")
❌ Growing vectors in loops ❌ Not setting random seed ❌ Ignoring NA values ❌ Using attach() ❌ Not documenting code ❌ Hardcoding file paths ❌ Not checking assumptions